예제 #1
0
파일: test_base.py 프로젝트: fsphil/habitat
 def test_ascii_floats_with_empty_strings(self):
     assert base.ascii_float(None, "") == None
예제 #2
0
파일: test_base.py 프로젝트: fsphil/habitat
 def test_ascii_floats_with_invalid_strings(self):
     base.ascii_float(None, "NOT A FLOAT")
예제 #3
0
파일: test_base.py 프로젝트: fsphil/habitat
 def test_ascii_floats(self):
     assert base.ascii_float(None, "12") == 12.0
     assert base.ascii_float(None, "12.3") == 12.3
     assert base.ascii_float(None, "0.1") == 0.1