TestFunctionGetFunctions.test__get_functions__A46AF6E43F()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nop 1
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