def test_tostr_integer(): assert tostr(1234) == '1234'
def test_tostr_none(): assert tostr(None) is None
def test_tostr_string(): assert tostr('hello there') == 'hello there'
def test_tostr_string(): assert tostr("hello there") == "hello there"
def __setattr__(self, name, value): self.__dict__[name] = tostr(value)