Example #1
0
 def test_x_com(self):
     # this tests #52
     self.assertEqual(get_company_aliases('Zappos.com'),
                      {'Zappos.com', 'Zappos'})
Example #2
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'})