/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_commit.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-01 20:30:54 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071001203054-uizh8fzgp29gtnuc
Hook up the list of modified files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
 
199
199
        dlg = commit.CommitDialog(tree)
200
200
        # TODO: assert that the pending box is set to show
201
 
        values = [(r[0], r[1], r[2], r[3]) for r in dlg._pending_liststore]
 
201
        values = [(r[0], r[1], r[2], r[3]) for r in dlg._pending_store]
202
202
        self.assertEqual([(rev_id2, '2007-10-01', 'Joe Foo', 'two')], values)
203
203
 
204
204
    def test_pending_multiple(self):
228
228
 
229
229
        dlg = commit.CommitDialog(tree)
230
230
        # TODO: assert that the pending box is set to show
231
 
        values = [(r[0], r[1], r[2], r[3]) for r in dlg._pending_liststore]
 
231
        values = [(r[0], r[1], r[2], r[3]) for r in dlg._pending_store]
232
232
        self.assertEqual([(rev_id3, '2007-10-01', 'Jerry Foo', 'three'),
233
233
                          (rev_id2, '2007-10-01', 'Joe Foo', 'two'),
234
234
                          (rev_id5, '2007-10-03', 'Jerry Foo', 'five'),
235
235
                          (rev_id4, '2007-10-01', 'Joe Foo', 'four'),
236
236
                         ], values)
 
237
 
 
238
    def test_filelist(self):
 
239
        tree = self.make_branch_and_tree('tree')
 
240
        self.build_tree(['tree/a', 'tree/b/', 'tree/b/c'])
 
241
        tree.add(['a', 'b', 'b/c'], ['a-id', 'b-id', 'c-id'])
 
242
 
 
243
        dlg = commit.CommitDialog(tree)
 
244
 
 
245
        values = [(r[0], r[1], r[2], r[3], r[4]) for r in dlg._files_store]
 
246
        self.assertEqual([('a-id', 'a', True, 'a', 'added'),
 
247
                          ('b-id', 'b', True, 'b/', 'added'),
 
248
                          ('c-id', 'b/c', True, 'b/c', 'added'),
 
249
                         ], values)