Пример #1
0
 def test_dicts(self, string: str, expected: dict):
     result = string_to_type(string)
     assert result == expected
Пример #2
0
 def test_malformed_primatives_are_strings(self, string: str,
                                           expected: str):
     result = string_to_type(string)
     assert result == expected
Пример #3
0
 def test_strings(self, string: str, expected: str):
     result = string_to_type(string)
     assert result == expected
Пример #4
0
 def test_floats(self, string: str, expected: float):
     result = string_to_type(string)
     assert result == expected
Пример #5
0
    def test_integers(self, string: str, expected: int):

        result = string_to_type(string)
        assert result == expected
Пример #6
0
    def test_bools(self, string: str, expected: bool):

        result = string_to_type(string)
        assert result == expected