Esempio n. 1
0
 def test_11(self):
     actual = mxp._test_serving_size_preparation_time('Serving Size  :       Preparation Time :')
     expected = True, '', ''
     self.assertEqual(actual, expected)
Esempio n. 2
0
 def test_6(self):
     actual = mxp._test_serving_size_preparation_time('Serving Size  : 2    Preparation Time :1:25')
     expected = True, '2', '1:25'
     self.assertEqual(actual, expected)
Esempio n. 3
0
 def test_10(self):
     actual = mxp._test_serving_size_preparation_time('Serving Size  :12345 Preparation Time : 2:57')
     expected = True, '12345', '2:57'
     self.assertEqual(actual, expected)
Esempio n. 4
0
 def test_when_empty(self):
     actual = mxp._test_serving_size_preparation_time('')
     expected = False, '', ''
     self.assertEqual(actual, expected)
Esempio n. 5
0
 def test_11(self):
     actual = mxp._test_serving_size_preparation_time(
         'Serving Size  :       Preparation Time :')
     expected = True, '', ''
     self.assertEqual(actual, expected)
Esempio n. 6
0
 def test_10(self):
     actual = mxp._test_serving_size_preparation_time(
         'Serving Size  :12345 Preparation Time : 2:57')
     expected = True, '12345', '2:57'
     self.assertEqual(actual, expected)
Esempio n. 7
0
 def test_6(self):
     actual = mxp._test_serving_size_preparation_time(
         'Serving Size  : 2    Preparation Time :1:25')
     expected = True, '2', '1:25'
     self.assertEqual(actual, expected)
Esempio n. 8
0
 def test_when_empty(self):
     actual = mxp._test_serving_size_preparation_time('')
     expected = False, '', ''
     self.assertEqual(actual, expected)