'Base implementation of verifying a failed response.'

def verify_failure(self, response, error_type=None):

    self.assertEqual(response.status_code, 404)
    if error_type:
        self.assertEqual(response.data, error_type.to_json())
