def test_when_MMMMM_trailing_text(self): actual = mmf._is_mmf_footer('MMMMMTEXT') expected = False self.assertEqual(actual, expected)
def test_when_MMMMM_leading_space(self): actual = mmf._is_mmf_footer(' MMMMM') expected = False self.assertEqual(actual, expected)
def test_when_MMMMM_missing_M(self): actual = mmf._is_mmf_footer('MMMM') expected = False self.assertEqual(actual, expected)
def test_when_trailing_space(self): actual = mmf._is_mmf_footer('----- ') expected = False self.assertEqual(actual, expected)
def test_when_missing_dash(self): actual = mmf._is_mmf_footer('----') expected = False self.assertEqual(actual, expected)
def test_when_MMMMM(self): actual = mmf._is_mmf_footer('MMMMM') expected = True self.assertEqual(actual, expected)
def test_when_empty(self): actual = mmf._is_mmf_footer('') expected = False self.assertEqual(actual, expected)
def test_when_normal(self): actual = mmf._is_mmf_footer('-----') expected = True self.assertEqual(actual, expected)