def test_type_int(self): assert syntax.datatype(1) == int
def test_type_float(self): assert syntax.datatype(1.0) == float
def test_type_dictionary(self): assert syntax.datatype({"a": 1, "b": 2}) == dict
def test_type_none(self): assert syntax.datatype(None) == type(None)
def test_type_list(self): assert syntax.datatype(["a", 1]) == list
def test_type_set(self): assert syntax.datatype({"a", "b"}) == set
def test_type_tuple(self): assert syntax.datatype(("a", 1)) == tuple
def test_type_bool(self): assert syntax.datatype(True) == bool
def test_type_string_multi(self): assert syntax.datatype("string") == str
def test_type_string(self): assert (syntax.datatype("""multi line string""") == str)
def test_type_complex(self): assert syntax.datatype(1j) == complex