def test_when_more_dashes(self): actual = mxp._is_mxp_footer(' - - - - - - - - - - - - - - - - - - - - - - ') expected = True self.assertEqual(actual, expected)
def test_when_not_enough_dashes(self): actual = mxp._is_mxp_footer('- - - - - - - - - - - - - - - - -') expected = False self.assertEqual(actual, expected)
def test_when_outer_whitespace(self): actual = mxp._is_mxp_footer(' - - - - - - - - - - - - - - - - - - - ') expected = True self.assertEqual(actual, expected)
def test_when_empty(self): actual = mxp._is_mxp_footer('') expected = False self.assertEqual(actual, expected)
def test_when_text(self): actual = mxp._is_mxp_footer('Publisher: Golden West Publishers') expected = False self.assertEqual(actual, expected)
def test_when_more_dashes(self): actual = mxp._is_mxp_footer( ' - - - - - - - - - - - - - - - - - - - - - - ' ) expected = True self.assertEqual(actual, expected)
def test_when_outer_whitespace(self): actual = mxp._is_mxp_footer( ' - - - - - - - - - - - - - - - - - - - ' ) expected = True self.assertEqual(actual, expected)