def test_when_MMMMM_other_text(self): actual = mmf._is_mmf_header('MMMMM----- Anything goes here') expected = True self.assertEqual(actual, expected)
def test_when_only_dashes(self): actual = mmf._is_mmf_header('----------') expected = False self.assertEqual(actual, expected)
def test_when_only_MMMMM_and_dashes_and_space(self): actual = mmf._is_mmf_header('MMMMM----- ') expected = True self.assertEqual(actual, expected)
def test_when_missing_M(self): actual = mmf._is_mmf_header('MMMM----- Recipe via Meal-Master (tm) v8.05') expected = False self.assertEqual(actual, expected)
def test_when_trailing_space(self): actual = mmf._is_mmf_header('---------- Recipe via Meal-Master (tm) v8.05 ') expected = True self.assertEqual(actual, expected)
def test_when_empty(self): actual = mmf._is_mmf_header('') expected = False self.assertEqual(actual, expected)
def test_when_extra_dash(self): actual = mmf._is_mmf_header('----------- Recipe via Meal-Master (tm) v8.05') expected = False self.assertEqual(actual, expected)
def test_when_only_MMMMM_and_dashes_and_space(self): actual = mmf._is_mmf_header('MMMMM----- ') expected = True self.assertEqual(actual, expected)
def test_when_MMMMM_other_text(self): actual = mmf._is_mmf_header('MMMMM----- Anything goes here') expected = True self.assertEqual(actual, expected)
def test_when_only_dashes(self): actual = mmf._is_mmf_header('----------') expected = False self.assertEqual(actual, expected)
def test_when_trailing_space(self): actual = mmf._is_mmf_header( '---------- Recipe via Meal-Master (tm) v8.05 ') expected = True self.assertEqual(actual, expected)
def test_when_missing_M(self): actual = mmf._is_mmf_header( 'MMMM----- Recipe via Meal-Master (tm) v8.05') expected = False self.assertEqual(actual, expected)
def test_when_extra_dash(self): actual = mmf._is_mmf_header( '----------- Recipe via Meal-Master (tm) v8.05') expected = False self.assertEqual(actual, expected)
def test_when_empty(self): actual = mmf._is_mmf_header('') expected = False self.assertEqual(actual, expected)