def test_delete_non_existing_key_returns_404(self):
    identifier = create_user().json()['identifier']
    response = delete_key(identifier, key='foo')
    self.assertEqual(404, response.status_code)
    self.assertEqual('application/json', response.headers['Content-Type'], 'Content-Type should be application/json')
def test_delete_non_existing_key_returns_404(self):
    identifier = create_user().json()['identifier']
    response = delete_key(identifier, key='foo')
    self.assertEqual(404, response.status_code)
    self.assertEqual('application/json', response.headers['Content-Type'], 'Content-Type should be application/json')