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))
def test_entry_lookup_2(self): row = ['a', 'b', 'c'] with self.assertRaises(KeyError): self.assertEqual(1, utils.entry_lookup('B', row))
def test_entry_lookup_3(self): row = ['a', 'b', 'c'] self.assertEqual(1, utils.entry_lookup('B', row, case_sensitive=False))
def test_entry_lookup_1(self): row = ['a', 'b', 'c'] self.assertEqual(1, utils.entry_lookup('b', row))