Esempio n. 1
0
 def test_dicts(self, string: str, expected: dict):
     result = string_to_type(string)
     assert result == expected
Esempio n. 2
0
 def test_malformed_primatives_are_strings(self, string: str,
                                           expected: str):
     result = string_to_type(string)
     assert result == expected
Esempio n. 3
0
 def test_strings(self, string: str, expected: str):
     result = string_to_type(string)
     assert result == expected
Esempio n. 4
0
 def test_floats(self, string: str, expected: float):
     result = string_to_type(string)
     assert result == expected
Esempio n. 5
0
    def test_integers(self, string: str, expected: int):

        result = string_to_type(string)
        assert result == expected
Esempio n. 6
0
    def test_bools(self, string: str, expected: bool):

        result = string_to_type(string)
        assert result == expected