'Test error message if certificate invalidation does not exists.'

def test_remove_certificate_invalidation_error(self):

    self.generated_certificate.invalidate()
    response = self.client.post(self.url, data=json.dumps(self.certificate_invalidation_data), content_type='application/json', REQUEST_METHOD='DELETE')
    self.assertEqual(response.status_code, 400)
    res_json = json.loads(response.content)
    self.assertEqual(res_json['message'], u'Certificate    Invalidation    does    not    exist,    Please    refresh    the    page    and    try    again.')
