Пример #1
0
 def test_forwards_details(self):
     x = Mismatch("description", {'foo': 'bar'})
     decorated = MismatchDecorator(x)
     self.assertEqual(x.get_details(), decorated.get_details())
Пример #2
0
 def test_forwards_details(self):
     x = Mismatch("description", {'foo': 'bar'})
     decorated = MismatchDecorator(x)
     self.assertEqual(x.get_details(), decorated.get_details())
Пример #3
0
 def test_repr(self):
     x = Mismatch("description", {'foo': 'bar'})
     decorated = MismatchDecorator(x)
     self.assertEqual('<testtools.matchers.MismatchDecorator(%r)>' % (x, ),
                      repr(decorated))
Пример #4
0
 def test_forwards_description(self):
     x = Mismatch("description", {"foo": "bar"})
     decorated = MismatchDecorator(x)
     self.assertEqual(x.describe(), decorated.describe())