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