| Total Complexity | 4 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| 1 | """Sample unit test module.""" |
||
| 8 | class TestGrortir(unittest.TestCase): |
||
| 9 | |||
| 10 | """Sample unit test class.""" |
||
| 11 | |||
| 12 | def test_dependency_import(self): |
||
| 13 | """Sample test method for dependencies.""" |
||
| 14 | try: |
||
| 15 | import testpackage # pylint: disable=unused-variable |
||
|
|
|||
| 16 | assert True |
||
| 17 | except ImportError: |
||
| 18 | self.fail("dependency not installed") |
||
| 19 | |||
| 20 | def test_branch_coverage(self): |
||
| 21 | """Sample test method for branch coverage.""" |
||
| 22 | self.assertEqual(sample.function(True), 'True') |
||
| 23 | self.assertEqual(sample.function(False), 'False') |
||
| 24 | self.assertEqual(sample.function(None), 'None') |
||
| 25 |