'Check a JSON response against a known assertion object.'

def check_assertion_structure(self, assertion, json_assertion):

    self.assertEqual(assertion.image_url, json_assertion['image_url'])
    self.assertEqual(assertion.assertion_url, json_assertion['assertion_url'])
    self.check_class_structure(assertion.badge_class, json_assertion['badge_class'])
