示例#1
0
 def test_entry_lookup_4(self):
     row = ['a', 'b', 'c']
     with self.assertRaises(KeyError):
         self.assertEqual(
             1, utils.entry_lookup('x', row, case_sensitive=False))
示例#2
0
 def test_entry_lookup_2(self):
     row = ['a', 'b', 'c']
     with self.assertRaises(KeyError):
         self.assertEqual(1, utils.entry_lookup('B', row))
示例#3
0
 def test_entry_lookup_3(self):
     row = ['a', 'b', 'c']
     self.assertEqual(1, utils.entry_lookup('B', row, case_sensitive=False))
示例#4
0
 def test_entry_lookup_1(self):
     row = ['a', 'b', 'c']
     self.assertEqual(1, utils.entry_lookup('b', row))