コード例 #1
0
ファイル: test_category.py プロジェクト: spendright/msd
 def test_custom_split(self):
     self.assertEqual(split_category("Skin and Hair Care"), {"Skin Care", "Hair Care"})
コード例 #2
0
ファイル: test_category.py プロジェクト: spendright/msd
 def test_oxford_comma(self):
     self.assertEqual(split_category("Foo, Bar, and Baz"), {"Foo", "Bar", "Baz"})
コード例 #3
0
ファイル: test_category.py プロジェクト: spendright/msd
 def test_simple_split(self):
     self.assertEqual(split_category("Home and Garden"), {"Home", "Garden"})
コード例 #4
0
ファイル: test_category.py プロジェクト: spendright/msd
 def test_empty(self):
     self.assertEqual(split_category(""), set())
コード例 #5
0
ファイル: test_category.py プロジェクト: davidmarin/msd
 def test_oxford_comma(self):
     self.assertEqual(split_category('Foo, Bar, and Baz'),
                      {'Foo', 'Bar', 'Baz'})
コード例 #6
0
ファイル: test_category.py プロジェクト: davidmarin/msd
 def test_custom_split(self):
     self.assertEqual(split_category('Skin and Hair Care'),
                      {'Skin Care', 'Hair Care'})
コード例 #7
0
ファイル: test_category.py プロジェクト: davidmarin/msd
 def test_simple_split(self):
     self.assertEqual(split_category('Home and Garden'),
                      {'Home', 'Garden'})