Exemple #1
0
 def test_within_dict_2(self):
     x = [1, 2, 3, 5]
     d = {1: 10, 2: 12, 3: 13, 4: 14}
     assert not within_dict(x, d)
Exemple #2
0
 def test_within_dict_3(self):
     x = 3
     d = {1: 10, 2: 12, 3: 13, 4: 14}
     with self.assertRaises(TypeError):
         within_dict(x, d)
Exemple #3
0
 def test_within_dict_1(self):
     x = [1, 2, 3]
     d = {1: 10, 2: 12, 3: 13, 4: 14}
     assert within_dict(x, d)