~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_graph.py

  • Committer: Aaron Bentley
  • Date: 2008-12-11 16:25:46 UTC
  • mto: This revision was merged to the branch mainline in revision 3894.
  • Revision ID: aaron@aaronbentley.com-20081211162546-a1zte4t2ststz6th
Change custom error to an AssertionError.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1455
1455
        self.assertIs(None, self.caching_pp._cache)
1456
1456
 
1457
1457
    def test_enable_cache_raises(self):
1458
 
        e = self.assertRaises(errors.CacheReEnabled,
1459
 
                              self.caching_pp.enable_cache)
 
1458
        e = self.assertRaises(AssertionError, self.caching_pp.enable_cache)
1460
1459
        self.assertEqual('Cache enabled when already enabled.', str(e))
1461
1460
 
1462
1461
    def test_cache_misses(self):