Esempio n. 1
0
 def test_validate_dict_wrong_type(self):
     """
     If the dict isn't a dictionary then fail.
     """
     self.assertFalse(validate_dict(('foo', 'bar')))
Esempio n. 2
0
 def test_validate_dict(self):
     """
     A dictionary containing key/value strings passes.
     """
     self.assertTrue(validate_dict({'foo': 'bar'}))