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