コード例 #1
0
ファイル: test_base.py プロジェクト: fsphil/habitat
 def test_ascii_ints_with_empty_strings(self):
     assert base.ascii_int(None, "") == None
コード例 #2
0
ファイル: test_base.py プロジェクト: fsphil/habitat
 def test_ascii_ints_with_invalid_strings(self):
     base.ascii_int(None, "NOT AN INT")
コード例 #3
0
ファイル: test_base.py プロジェクト: fsphil/habitat
 def test_ascii_ints(self):
     assert base.ascii_int(None, "12") == 12
     assert base.ascii_int(None, "012") == 12