Conditions | 5 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | import unittest |
||
8 | def test_fail_instantation(self): |
||
9 | with self.assertRaises(ValueError): |
||
10 | TextPosition(None, 2) |
||
11 | |||
12 | with self.assertRaises(TypeError): |
||
13 | TextPosition("hello", 3) |
||
14 | |||
15 | with self.assertRaises(TypeError): |
||
16 | TextPosition(4, "world") |
||
17 | |||
18 | with self.assertRaises(TypeError): |
||
19 | TextPosition("double", "string") |
||
20 | |||
33 |