def test_validation_fails_white_space(self):
     item = {'body_html': '$100', 'anpa_take_key': '  '}
     with assert_raises(KeyError):
         validate(item)
 def test_validation_succeeds(self):
     item = {'body_html': '$100', 'anpa_take_key': 'Update'}
     res = validate(item)
     self.assertIsNotNone(res)
Esempio n. 3
0
 def test_validation_succeeds(self):
     item = {'body_html': '$100', 'anpa_take_key': 'Update'}
     res = validate(item)
     self.assertIsNotNone(res)
 def test_validation_fails(self):
     item = {'body_html': '$100'}
     with assert_raises(KeyError):
         validate(item)
Esempio n. 5
0
 def test_validation_fails_white_space(self):
     item = {'body_html': '$100', 'anpa_take_key': '  '}
     with assert_raises(KeyError):
         validate(item)
Esempio n. 6
0
 def test_validation_fails(self):
     item = {'body_html': '$100'}
     with assert_raises(KeyError):
         validate(item)
Esempio n. 7
0
 def test_validation_succeeds(self):
     item = {"body_html": "$100", "anpa_take_key": "Update"}
     res = validate(item)
     self.assertIsNotNone(res)
Esempio n. 8
0
 def test_validation_fails_white_space(self):
     item = {"body_html": "$100", "anpa_take_key": "  "}
     with assert_raises(KeyError):
         validate(item)
Esempio n. 9
0
 def test_validation_fails(self):
     item = {"body_html": "$100"}
     with assert_raises(KeyError):
         validate(item)