'Test certificates exception removal api endpoint returns error
when called with non existing certificate exception id'

def test_remove_certificate_exception_non_existing_error(self):

    response = self.client.post(self.url, data=json.dumps(self.certificate_exception), content_type='application/json', REQUEST_METHOD='DELETE')
    self.assertEqual(response.status_code, 400)
    res_json = json.loads(response.content)
    self.assertFalse(res_json['success'])
    self.assertEqual(res_json['message'], u'Certificate    exception    (user={user})    does    not    exist    in    certificate    white    list.    Please    refresh    the    page    and    try    again.'.format(user=self.certificate_exception['user_name']))
