예제 #1
0
파일: tests.py 프로젝트: bcorwin/monitor
 def test_floatFromPost_5(self):
     request = buildBlankRequestObject()
     value = floatFromPost(request, 'float')
     self.assertEqual(value, 0)
예제 #2
0
파일: tests.py 프로젝트: bcorwin/monitor
 def test_floatFromPost_3(self):
     request = buildInvalidRequestObject_2()
     value = floatFromPost(request, 'float')
     self.assertEqual(type(value), type(float(1)))