예제 #1
0
 def test_when_MMMMM_other_text(self):
     actual = mmf._is_mmf_header('MMMMM----- Anything goes here')
     expected = True
     self.assertEqual(actual, expected)
예제 #2
0
 def test_when_only_dashes(self):
     actual = mmf._is_mmf_header('----------')
     expected = False
     self.assertEqual(actual, expected)
예제 #3
0
 def test_when_only_MMMMM_and_dashes_and_space(self):
     actual = mmf._is_mmf_header('MMMMM----- ')
     expected = True
     self.assertEqual(actual, expected)
예제 #4
0
 def test_when_missing_M(self):
     actual = mmf._is_mmf_header('MMMM----- Recipe via Meal-Master (tm) v8.05')
     expected = False
     self.assertEqual(actual, expected)
예제 #5
0
 def test_when_trailing_space(self):
     actual = mmf._is_mmf_header('---------- Recipe via Meal-Master (tm) v8.05 ')
     expected = True
     self.assertEqual(actual, expected)
예제 #6
0
 def test_when_empty(self):
     actual = mmf._is_mmf_header('')
     expected = False
     self.assertEqual(actual, expected)
예제 #7
0
 def test_when_extra_dash(self):
     actual = mmf._is_mmf_header('----------- Recipe via Meal-Master (tm) v8.05')
     expected = False
     self.assertEqual(actual, expected)
예제 #8
0
 def test_when_only_MMMMM_and_dashes_and_space(self):
     actual = mmf._is_mmf_header('MMMMM----- ')
     expected = True
     self.assertEqual(actual, expected)
예제 #9
0
 def test_when_MMMMM_other_text(self):
     actual = mmf._is_mmf_header('MMMMM----- Anything goes here')
     expected = True
     self.assertEqual(actual, expected)
예제 #10
0
 def test_when_only_dashes(self):
     actual = mmf._is_mmf_header('----------')
     expected = False
     self.assertEqual(actual, expected)
예제 #11
0
 def test_when_trailing_space(self):
     actual = mmf._is_mmf_header(
         '---------- Recipe via Meal-Master (tm) v8.05 ')
     expected = True
     self.assertEqual(actual, expected)
예제 #12
0
 def test_when_missing_M(self):
     actual = mmf._is_mmf_header(
         'MMMM----- Recipe via Meal-Master (tm) v8.05')
     expected = False
     self.assertEqual(actual, expected)
예제 #13
0
 def test_when_extra_dash(self):
     actual = mmf._is_mmf_header(
         '----------- Recipe via Meal-Master (tm) v8.05')
     expected = False
     self.assertEqual(actual, expected)
예제 #14
0
 def test_when_empty(self):
     actual = mmf._is_mmf_header('')
     expected = False
     self.assertEqual(actual, expected)