Total Complexity | 1 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import unittest |
||
7 | class ExceptionsTest(unittest.TestCase): |
||
8 | |||
9 | def test_get_exitcode(self): |
||
10 | self.assertEqual(get_exitcode(KeyboardInterrupt()), 130) |
||
11 | self.assertEqual(get_exitcode(AssertionError()), 255) |
||
12 | self.assertEqual(get_exitcode(SystemExit(999)), 999) |
||
13 | self.assertEqual(get_exitcode(VersionConflict( |
||
14 | "libclang-py3 0.3", "libclang-py3==0.2")), 13) |
||
15 | self.assertEqual(get_exitcode(EOFError()), 0) |
||
16 | self.assertEqual(get_exitcode(None), 0) |
||
17 |