Exemplo n.º 1
0
def test_tostr_integer():
    assert tostr(1234) == '1234'
Exemplo n.º 2
0
def test_tostr_none():
    assert tostr(None) is None
Exemplo n.º 3
0
def test_tostr_string():
    assert tostr('hello there') == 'hello there'
Exemplo n.º 4
0
def test_tostr_string():
    assert tostr("hello there") == "hello there"
Exemplo n.º 5
0
 def __setattr__(self, name, value):
     self.__dict__[name] = tostr(value)
Exemplo n.º 6
0
def test_tostr_integer():
    assert tostr(1234) == '1234'
Exemplo n.º 7
0
def test_tostr_string():
    assert tostr('hello there') == 'hello there'
Exemplo n.º 8
0
def test_tostr_none():
    assert tostr(None) is None