Exemplo n.º 1
0
 def test_more_caps(self):
     self.assertEqual(
         pick_brand_name(['Blackberry', 'BlackBerry']),
         'BlackBerry')
Exemplo n.º 2
0
 def test_company_name_match(self):
     # tests #40
     self.assertEqual(
         pick_brand_name(['Asus', 'ASUS'], company_names={'ASUS'}),
         'ASUS')
Exemplo n.º 3
0
 def test_iphone(self):
     self.assertEqual(pick_brand_name(['IPhone', 'iPhone']), 'iPhone')
Exemplo n.º 4
0
 def test_all_caps(self):
     self.assertEqual(pick_brand_name(['Asus', 'ASUS']), 'Asus')
Exemplo n.º 5
0
 def test_one(self):
     self.assertEqual(pick_brand_name(['Apple']), 'Apple')