Example #1
0
 def test_custom_split(self):
     self.assertEqual(split_category("Skin and Hair Care"), {"Skin Care", "Hair Care"})
Example #2
0
 def test_oxford_comma(self):
     self.assertEqual(split_category("Foo, Bar, and Baz"), {"Foo", "Bar", "Baz"})
Example #3
0
 def test_simple_split(self):
     self.assertEqual(split_category("Home and Garden"), {"Home", "Garden"})
Example #4
0
 def test_empty(self):
     self.assertEqual(split_category(""), set())
Example #5
0
 def test_oxford_comma(self):
     self.assertEqual(split_category('Foo, Bar, and Baz'),
                      {'Foo', 'Bar', 'Baz'})
Example #6
0
 def test_custom_split(self):
     self.assertEqual(split_category('Skin and Hair Care'),
                      {'Skin Care', 'Hair Care'})
Example #7
0
 def test_simple_split(self):
     self.assertEqual(split_category('Home and Garden'),
                      {'Home', 'Garden'})