~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_index.py

  • Committer: Robert Collins
  • Date: 2007-07-12 14:48:09 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712144809-3cnuwhg0k86uo3qq
Iterating no keys should work too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        index = self.make_index()
55
55
        self.assertEqual([], list(index.iter_all_entries()))
56
56
 
 
57
    def test_iter_nothing_empty(self):
 
58
        index = self.make_index()
 
59
        self.assertEqual([], list(index.iter_entries([])))
 
60
 
57
61
    def test_iter_missing_entry_empty(self):
58
62
        index = self.make_index()
59
63
        self.assertRaises(errors.MissingKey, list, index.iter_entries(['a']))