def test_should_build_description(self):
     matcher = RaisesMatcher(ValueError)
     matcher._actual_exception_type = TypeError
     self.assertEquals("Expected 'spam' to raise exception of type ValueError but instead caught TypeError",
         matcher.describe("spam"))
Esempio n. 2
0
 def test_should_build_description(self):
     matcher = RaisesMatcher(ValueError)
     matcher._actual_exception_type = TypeError
     self.assertEquals(
         "Expected 'spam' to raise exception of type ValueError but instead caught TypeError",
         matcher.describe("spam"))