| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from fastest.code_assets.function import get_functions |
||
| 2 | from fastest.constants import TestBodies |
||
| 3 | import unittest |
||
| 4 | |||
| 5 | |||
| 6 | class TestFunctionGetFunctions(unittest.TestCase): |
||
| 7 | def test__get_functions__A46AF6E43F(self): |
||
| 8 | self.assertIsInstance(get_functions(''), list) |
||
| 9 | page = TestBodies.GET_FUNCTIONS_TEST_CASE_1 |
||
| 10 | self.assertEqual(get_functions(page), TestBodies.GET_FUNCTIONS_TEST_CASE_1_EXPECT) |
||
| 11 | |||
| 12 | def test__get_functions__5C1F8B243A(self): |
||
| 13 | self.assertIsInstance(get_functions(''), list) |
||
| 14 | page_with_syntax_error = TestBodies.PAGE_WITH_SYNTAX_ERRORS |
||
| 15 | self.assertEqual(get_functions(page_with_syntax_error), []) |
||
| 16 |