Example #1
0
 def test_when_multiple_categories_with_more_space(self):
     actual = mmf._split_categories(' Dessert , Italian , Easy   ')
     expected = ['Dessert', 'Italian', 'Easy']
     self.assertEqual(actual, expected)
Example #2
0
 def test_when_none_mixed_caps(self):
     actual = mmf._split_categories('noNE')
     expected = []
     self.assertEqual(actual, expected)
Example #3
0
 def test_when_one_category(self):
     actual = mmf._split_categories('Dessert')
     expected = ['Dessert']
     self.assertEqual(actual, expected)
Example #4
0
 def test_when_none(self):
     actual = mmf._split_categories('None')
     expected = []
     self.assertEqual(actual, expected)
Example #5
0
 def test_when_multiple_categories_with_more_space(self):
     actual = mmf._split_categories(' Dessert , Italian , Easy   ')
     expected = ['Dessert', 'Italian', 'Easy']
     self.assertEqual(actual, expected)
Example #6
0
 def test_when_one_category(self):
     actual = mmf._split_categories('Dessert')
     expected = ['Dessert']
     self.assertEqual(actual, expected)
Example #7
0
 def test_when_none_mixed_caps(self):
     actual = mmf._split_categories('noNE')
     expected = []
     self.assertEqual(actual, expected)
Example #8
0
 def test_when_none(self):
     actual = mmf._split_categories('None')
     expected = []
     self.assertEqual(actual, expected)