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)
def test_test_6(self): actual = mxp._test_ingredient(' 2/3 Cup Apples ') expected = '{2/3} {Cup} {Apples} {}' self.assertEqual(repr(actual), expected)
def test_test_9(self): actual = mxp._test_ingredient(' -- softened') expected = '{} {} {-- softened} {}' self.assertEqual(repr(actual), expected)
def test_test_4(self): actual = mxp._test_ingredient(' Apples') expected = '{} {} {Apples} {}' self.assertEqual(repr(actual), expected)
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)
def test_when_whitespace(self): actual = mxp._test_ingredient(' ') expected = None self.assertEqual(actual, expected)
def test_when_ingredient_misaligned(self): actual = mxp._test_ingredient(' 2/3 Cup Apples') expected = None self.assertEqual(actual, expected)
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)
def test_when_footer(self): actual = mxp._test_ingredient(' - - - - - - - - - - - - - - - - - - - ') expected = None self.assertEqual(actual, expected)
def test_test_9(self): actual = mxp._test_ingredient( ' -- softened') expected = '{} {} {-- softened} {}' self.assertEqual(repr(actual), expected)
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)
def test_when_whitespace(self): actual = mxp._test_ingredient( ' ') expected = None self.assertEqual(actual, expected)
def test_when_footer(self): actual = mxp._test_ingredient( ' - - - - - - - - - - - - - - - - - - - ' ) expected = None self.assertEqual(actual, expected)