Esempio n. 1
0
 def test_alan_7(self):
     test_string = "$turnips am:0)"
     self.assertEqual(extract_price(test_string), None)
Esempio n. 2
0
 def test_alan_5(self):
     test_string = "$turnips am 09"
     self.assertEqual(extract_price(test_string), 9)
Esempio n. 3
0
 def test_alan_6(self):
     test_string = r"$turnips am \n69"
     self.assertEqual(extract_price(test_string), None)
Esempio n. 4
0
 def test_Alan_3(self):
     test_string = "$turnip am 1yourmom"
     self.assertEqual(extract_price(test_string), None)
Esempio n. 5
0
 def test_alan_4(self):
     test_string = "$turnip am 1\\0"
     self.assertEqual(extract_price(test_string), None)
Esempio n. 6
0
 def test_Alan_2(self):
     test_string = "$turnip am 1+1"
     self.assertEqual(extract_price(test_string), None)
Esempio n. 7
0
 def test_double_price(self):
     test_string = "$turnip 50 50 pm"
     self.assertEqual(extract_price(test_string), 50)
Esempio n. 8
0
 def test_date_mid_price(self):
     test_string = "$turnip 50 4/20 am"
     self.assertEqual(extract_price(test_string), 50)
Esempio n. 9
0
 def test_start_price(self):
     test_string = "$turnip pm 50"
     self.assertEqual(extract_price(test_string), 50)
Esempio n. 10
0
 def test_end_price(self):
     test_string = "$turnip 50 am"
     self.assertEqual(extract_price(test_string), 50)