Exemplo n.º 1
0
 def test_test_10(self):
     actual = mxp._test_ingredient('     1/4           Cup  Margarine Or Butter--softened')
     expected = '{1/4} {Cup} {Margarine Or Butter--softened} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 2
0
 def test_test_6(self):
     actual = mxp._test_ingredient('     2/3           Cup      Apples    ')
     expected = '{2/3} {Cup} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 3
0
 def test_test_9(self):
     actual = mxp._test_ingredient('                            -- softened')
     expected = '{} {} {-- softened} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 4
0
 def test_test_4(self):
     actual = mxp._test_ingredient('                        Apples')
     expected = '{} {} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 5
0
 def test_test_5(self):
     actual = mxp._test_ingredient('  11 3/4  tablespoons+  Apple pie spice')
     expected = '{11 3/4} {tablespoons+} {Apple pie spice} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 6
0
 def test_when_whitespace(self):
     actual = mxp._test_ingredient('                                                ')
     expected = None
     self.assertEqual(actual, expected)
Exemplo n.º 7
0
 def test_when_ingredient_misaligned(self):
     actual = mxp._test_ingredient('     2/3           Cup Apples')
     expected = None
     self.assertEqual(actual, expected)
Exemplo n.º 8
0
 def test_test_10(self):
     actual = mxp._test_ingredient(
         '     1/4           Cup  Margarine Or Butter--softened')
     expected = '{1/4} {Cup} {Margarine Or Butter--softened} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 9
0
 def test_when_footer(self):
     actual = mxp._test_ingredient('                                    - - - - - - - - - - - - - - - - - - - ')
     expected = None
     self.assertEqual(actual, expected)
Exemplo n.º 10
0
 def test_test_6(self):
     actual = mxp._test_ingredient('     2/3           Cup      Apples    ')
     expected = '{2/3} {Cup} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 11
0
 def test_test_9(self):
     actual = mxp._test_ingredient(
         '                            -- softened')
     expected = '{} {} {-- softened} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 12
0
 def test_test_5(self):
     actual = mxp._test_ingredient(
         '  11 3/4  tablespoons+  Apple pie spice')
     expected = '{11 3/4} {tablespoons+} {Apple pie spice} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 13
0
 def test_test_4(self):
     actual = mxp._test_ingredient('                        Apples')
     expected = '{} {} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Exemplo n.º 14
0
 def test_when_ingredient_misaligned(self):
     actual = mxp._test_ingredient('     2/3           Cup Apples')
     expected = None
     self.assertEqual(actual, expected)
Exemplo n.º 15
0
 def test_when_whitespace(self):
     actual = mxp._test_ingredient(
         '                                                ')
     expected = None
     self.assertEqual(actual, expected)
Exemplo n.º 16
0
 def test_when_footer(self):
     actual = mxp._test_ingredient(
         '                                    - - - - - - - - - - - - - - - - - - - '
     )
     expected = None
     self.assertEqual(actual, expected)