Example #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)
Example #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)
Example #3
0
 def test_test_9(self):
     actual = mxp._test_ingredient('                            -- softened')
     expected = '{} {} {-- softened} {}'
     self.assertEqual(repr(actual), expected)
Example #4
0
 def test_test_4(self):
     actual = mxp._test_ingredient('                        Apples')
     expected = '{} {} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Example #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)
Example #6
0
 def test_when_whitespace(self):
     actual = mxp._test_ingredient('                                                ')
     expected = None
     self.assertEqual(actual, expected)
Example #7
0
 def test_when_ingredient_misaligned(self):
     actual = mxp._test_ingredient('     2/3           Cup Apples')
     expected = None
     self.assertEqual(actual, expected)
Example #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)
Example #9
0
 def test_when_footer(self):
     actual = mxp._test_ingredient('                                    - - - - - - - - - - - - - - - - - - - ')
     expected = None
     self.assertEqual(actual, expected)
Example #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)
Example #11
0
 def test_test_9(self):
     actual = mxp._test_ingredient(
         '                            -- softened')
     expected = '{} {} {-- softened} {}'
     self.assertEqual(repr(actual), expected)
Example #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)
Example #13
0
 def test_test_4(self):
     actual = mxp._test_ingredient('                        Apples')
     expected = '{} {} {Apples} {}'
     self.assertEqual(repr(actual), expected)
Example #14
0
 def test_when_ingredient_misaligned(self):
     actual = mxp._test_ingredient('     2/3           Cup Apples')
     expected = None
     self.assertEqual(actual, expected)
Example #15
0
 def test_when_whitespace(self):
     actual = mxp._test_ingredient(
         '                                                ')
     expected = None
     self.assertEqual(actual, expected)
Example #16
0
 def test_when_footer(self):
     actual = mxp._test_ingredient(
         '                                    - - - - - - - - - - - - - - - - - - - '
     )
     expected = None
     self.assertEqual(actual, expected)