Пример #1
0
 def test_when_dict_non_empty_and_keys_empty_returns_true(self):
     self.assertTrue(are_all_keys_in({'a': 'b'}, keys=[]))
Пример #2
0
 def test_when_all_keys_in_dict_returns_true(self):
     self.assertTrue(are_all_keys_in({'a': 'b', 'c': 'd'}, keys=['a', 'c']))
Пример #3
0
 def test_when_some_but_not_all_keys_in_dict_returns_false(self):
     self.assertFalse(
         are_all_keys_in({
             'a': 'b',
             'c': 'd'
         }, keys=['a', 'c', 'e']))
Пример #4
0
 def test_when_dict_empty_and_keys_non_empty_returns_false(self):
     self.assertFalse(are_all_keys_in({}, keys=['a']))