def test_validation_succeeds(self): item = {'body_html': '$100', 'anpa_take_key': 'Update'} res = validate(item) self.assertIsNotNone(res)
def test_validation_fails_white_space(self): item = {'body_html': '$100', 'anpa_take_key': ' '} with assert_raises(KeyError): validate(item)
def test_validation_fails(self): item = {'body_html': '$100'} with assert_raises(KeyError): validate(item)