예제 #1
0
 def test_when_more_dashes(self):
     actual = mxp._is_mxp_footer('           - - - - - - - - - - - - - - - - - - - - - -                   ')
     expected = True
     self.assertEqual(actual, expected)
예제 #2
0
 def test_when_not_enough_dashes(self):
     actual = mxp._is_mxp_footer('- - - - - - - - - - - - - - - - -')
     expected = False
     self.assertEqual(actual, expected)
예제 #3
0
 def test_when_outer_whitespace(self):
     actual = mxp._is_mxp_footer('                - - - - - - - - - - - - - - - - - - -                     ')
     expected = True
     self.assertEqual(actual, expected)
예제 #4
0
 def test_when_empty(self):
     actual = mxp._is_mxp_footer('')
     expected = False
     self.assertEqual(actual, expected)
예제 #5
0
 def test_when_text(self):
     actual = mxp._is_mxp_footer('Publisher: Golden West Publishers')
     expected = False
     self.assertEqual(actual, expected)
예제 #6
0
 def test_when_more_dashes(self):
     actual = mxp._is_mxp_footer(
         '           - - - - - - - - - - - - - - - - - - - - - -                   '
     )
     expected = True
     self.assertEqual(actual, expected)
예제 #7
0
 def test_when_outer_whitespace(self):
     actual = mxp._is_mxp_footer(
         '                - - - - - - - - - - - - - - - - - - -                     '
     )
     expected = True
     self.assertEqual(actual, expected)
예제 #8
0
 def test_when_not_enough_dashes(self):
     actual = mxp._is_mxp_footer('- - - - - - - - - - - - - - - - -')
     expected = False
     self.assertEqual(actual, expected)
예제 #9
0
 def test_when_text(self):
     actual = mxp._is_mxp_footer('Publisher: Golden West Publishers')
     expected = False
     self.assertEqual(actual, expected)
예제 #10
0
 def test_when_empty(self):
     actual = mxp._is_mxp_footer('')
     expected = False
     self.assertEqual(actual, expected)