コード例 #1
0
ファイル: tests.py プロジェクト: mcgov/Social.Water
 def test_find_decimal4(self):
     thedouble = "2040"
     try:
         thedouble = tools.find_decimal(thedouble)
         self.fail("No error was thrown while parsing an invalid number " + thedouble)
     except NoNumError as error:
         return
コード例 #2
0
ファイル: tests.py プロジェクト: mcgov/Social.Water
 def test_find_decimal3(self):
     thedouble = "-9000.0000"
     try:
         thedouble = tools.find_decimal(thedouble)
         self.fail("No error was thrown while parsing an invalid double" + thedouble)
     except NoNumError as error:
         return
コード例 #3
0
 def test_find_decimal4(self):
     thedouble = "2040"
     try:
         thedouble = tools.find_decimal(thedouble)
         self.fail("No error was thrown while parsing an invalid number " +
                   thedouble)
     except NoNumError as error:
         return
コード例 #4
0
 def test_find_decimal3(self):
     thedouble = "-9000.0000"
     try:
         thedouble = tools.find_decimal(thedouble)
         self.fail("No error was thrown while parsing an invalid double" +
                   thedouble)
     except NoNumError as error:
         return
コード例 #5
0
ファイル: tests.py プロジェクト: mcgov/Social.Water
 def test_find_decimal_in_text(self):
     self.assertEquals(tools.find_decimal(self.line), self.double1)
コード例 #6
0
ファイル: tests.py プロジェクト: mcgov/Social.Water
 def test_find_decimal2(self):
     self.assertEquals(tools.find_decimal(str(self.double2)), self.double2)
コード例 #7
0
 def test_find_decimal_in_text(self):
     self.assertEquals(tools.find_decimal(self.line), self.double1)
コード例 #8
0
 def test_find_decimal2(self):
     self.assertEquals(tools.find_decimal(str(self.double2)), self.double2)
コード例 #9
0
 def test_find_decimal1(self):
     self.assertEqual(tools.find_decimal(str(self.double1)), self.double1)