'Test certificates exception removal api endpoint returns error
when called without certificate exception id'

def test_remove_certificate_exception_invalid_request_error(self):

    response = self.client.post(self.url, data='Test    Invalid    data', 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'The    record    is    not    in    the    correct    format.    Please    add    a    valid    username    or    email    address.')
