コード例 #1
0
ファイル: test_brand.py プロジェクト: spendright/msd
 def test_more_caps(self):
     self.assertEqual(
         pick_brand_name(['Blackberry', 'BlackBerry']),
         'BlackBerry')
コード例 #2
0
ファイル: test_brand.py プロジェクト: spendright/msd
 def test_company_name_match(self):
     # tests #40
     self.assertEqual(
         pick_brand_name(['Asus', 'ASUS'], company_names={'ASUS'}),
         'ASUS')
コード例 #3
0
ファイル: test_brand.py プロジェクト: spendright/msd
 def test_iphone(self):
     self.assertEqual(pick_brand_name(['IPhone', 'iPhone']), 'iPhone')
コード例 #4
0
ファイル: test_brand.py プロジェクト: spendright/msd
 def test_all_caps(self):
     self.assertEqual(pick_brand_name(['Asus', 'ASUS']), 'Asus')
コード例 #5
0
ファイル: test_brand.py プロジェクト: spendright/msd
 def test_one(self):
     self.assertEqual(pick_brand_name(['Apple']), 'Apple')