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