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