コード例 #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
ファイル: variables.py プロジェクト: MichalMazurek/easysnmp2
 def __setattr__(self, name, value):
     self.__dict__[name] = tostr(value)
コード例 #6
0
ファイル: test_utils.py プロジェクト: fgimian/easysnmp
def test_tostr_integer():
    assert tostr(1234) == '1234'
コード例 #7
0
ファイル: test_utils.py プロジェクト: fgimian/easysnmp
def test_tostr_string():
    assert tostr('hello there') == 'hello there'
コード例 #8
0
ファイル: test_utils.py プロジェクト: fgimian/easysnmp
def test_tostr_none():
    assert tostr(None) is None