/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2007-07-13 16:35:54 UTC
  • mto: (2592.3.3 repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070713163554-ok2qtnzv6rcbpt3z
Change the missing key interface in index operations to not raise, allowing callers to set policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                         " known method in options: ['bad', 'no-eol']",
88
88
                         str(error))
89
89
 
90
 
    def test_missing_key(self):
91
 
        error = errors.MissingKey('container', 'a key')
92
 
        self.assertEqualDiff("The key a key is not present in container.",
93
 
            str(error))
94
 
 
95
90
    def test_medium_not_connected(self):
96
91
        error = errors.MediumNotConnected("a medium")
97
92
        self.assertEqualDiff(