Example #1
0
 def test_x_dot_com(self):
     self.assertEqual(get_company_names('Zappos.com'),
                      {'Zappos.com'})
Example #2
0
 def test_turkish_a_s(self):
     # this tests #45
     self.assertEqual(get_company_names('Arçelik A.Ş'),
                      {'Arçelik', 'Arçelik A.Ş'})
Example #3
0
 def test_comma_llc(self):
     # this tests #35
     self.assertEqual(get_company_names('Indosole, LLC'),
                      {'Indosole', 'Indosole, LLC'})
Example #4
0
 def test_lowercase_a_s(self):
     # this tests #30
     self.assertEqual(get_company_names('bisgaard sko a/s'),
                      {'bisgaard sko a/s', 'bisgaard sko'})
Example #5
0
 def test_pvt_ltd(self):
     # this tests #12
     self.assertEqual(get_company_names('Servals Pvt Ltd'),
                      {'Servals', 'Servals Pvt Ltd'})
Example #6
0
 def test_basic(self):
     self.assertEqual(get_company_names('Konica'), {'Konica'})
Example #7
0
 def test_weird_caching_bug(self):
     # would get {'L', 'L Brands'} after calling
     # get_company_aliases()
     get_company_aliases('L Brands')
     self.assertEqual(get_company_names('L Brands'), {'L Brands'})
Example #8
0
 def test_variant_too_short(self):
     self.assertEqual(get_company_names('L Brands'), {'L Brands'})
Example #9
0
 def test_too_short(self):
     self.assertEqual(get_company_names('Y'), set())
Example #10
0
 def test_empty(self):
     self.assertEqual(get_company_names(''), set())