示例#1
0
 def test_when_MMMMM_trailing_text(self):
     actual = mmf._is_mmf_footer('MMMMMTEXT')
     expected = False
     self.assertEqual(actual, expected)
示例#2
0
 def test_when_MMMMM_leading_space(self):
     actual = mmf._is_mmf_footer(' MMMMM')
     expected = False
     self.assertEqual(actual, expected)
示例#3
0
 def test_when_MMMMM_missing_M(self):
     actual = mmf._is_mmf_footer('MMMM')
     expected = False
     self.assertEqual(actual, expected)
示例#4
0
 def test_when_trailing_space(self):
     actual = mmf._is_mmf_footer('----- ')
     expected = False
     self.assertEqual(actual, expected)
示例#5
0
 def test_when_missing_dash(self):
     actual = mmf._is_mmf_footer('----')
     expected = False
     self.assertEqual(actual, expected)
示例#6
0
 def test_when_MMMMM(self):
     actual = mmf._is_mmf_footer('MMMMM')
     expected = True
     self.assertEqual(actual, expected)
示例#7
0
 def test_when_empty(self):
     actual = mmf._is_mmf_footer('')
     expected = False
     self.assertEqual(actual, expected)
示例#8
0
 def test_when_MMMMM_trailing_text(self):
     actual = mmf._is_mmf_footer('MMMMMTEXT')
     expected = False
     self.assertEqual(actual, expected)
示例#9
0
 def test_when_normal(self):
     actual = mmf._is_mmf_footer('-----')
     expected = True
     self.assertEqual(actual, expected)
示例#10
0
 def test_when_MMMMM_leading_space(self):
     actual = mmf._is_mmf_footer(' MMMMM')
     expected = False
     self.assertEqual(actual, expected)
示例#11
0
 def test_when_MMMMM_missing_M(self):
     actual = mmf._is_mmf_footer('MMMM')
     expected = False
     self.assertEqual(actual, expected)
示例#12
0
 def test_when_missing_dash(self):
     actual = mmf._is_mmf_footer('----')
     expected = False
     self.assertEqual(actual, expected)
示例#13
0
 def test_when_trailing_space(self):
     actual = mmf._is_mmf_footer('----- ')
     expected = False
     self.assertEqual(actual, expected)
示例#14
0
 def test_when_empty(self):
     actual = mmf._is_mmf_footer('')
     expected = False
     self.assertEqual(actual, expected)
示例#15
0
 def test_when_MMMMM(self):
     actual = mmf._is_mmf_footer('MMMMM')
     expected = True
     self.assertEqual(actual, expected)
示例#16
0
 def test_when_normal(self):
     actual = mmf._is_mmf_footer('-----')
     expected = True
     self.assertEqual(actual, expected)