Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | from copy import copy, deepcopy |
||
19 | def test_doc_differentiates(self): |
||
20 | a = sentinel('sentinel-name', 'original-doc') |
||
21 | with self.assertRaises(ValueError) as e: |
||
22 | sentinel(a.__name__, 'new-doc') |
||
23 | |||
24 | msg = str(e.exception) |
||
25 | self.assertIn(a.__name__, msg) |
||
26 | self.assertIn(a.__doc__, msg) |
||
27 | |||
55 |