Exemple #1
0
 def test_when_more_dashes(self):
     actual = mxp._is_mxp_footer('           - - - - - - - - - - - - - - - - - - - - - -                   ')
     expected = True
     self.assertEqual(actual, expected)
Exemple #2
0
 def test_when_not_enough_dashes(self):
     actual = mxp._is_mxp_footer('- - - - - - - - - - - - - - - - -')
     expected = False
     self.assertEqual(actual, expected)
Exemple #3
0
 def test_when_outer_whitespace(self):
     actual = mxp._is_mxp_footer('                - - - - - - - - - - - - - - - - - - -                     ')
     expected = True
     self.assertEqual(actual, expected)
Exemple #4
0
 def test_when_empty(self):
     actual = mxp._is_mxp_footer('')
     expected = False
     self.assertEqual(actual, expected)
Exemple #5
0
 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)
 def test_when_not_enough_dashes(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_empty(self):
     actual = mxp._is_mxp_footer('')
     expected = False
     self.assertEqual(actual, expected)