'Assert the path returns HTTP 200 and returns appropriately-serialized data.'

def assert_verification_returned(self, verified=False):

    response = self.client.get(self.path)
    self.assertEqual(response.status_code, 200)
    expected_expires = (self.CREATED_AT + datetime.timedelta(settings.VERIFY_STUDENT[u'DAYS_GOOD_FOR']))
    expected = {u'status': self.verification.status, u'expiration_datetime': u'{}Z'.format(expected_expires.isoformat()), u'is_verified': verified}
    self.assertEqual(json.loads(response.content), expected)
