def test_delete_key_for_existing_user_and_key_is_successful(self):
    identifier = create_user().json()['identifier']
    store_key(identifier, key='foo', value='bar')
    response = delete_key(identifier, key='foo')
    self.assertEqual(202, response.status_code)
    response = get_key(identifier, key='foo')
    self.assertEqual(404, response.status_code)
def test_delete_key_for_existing_user_and_key_is_successful(self):
    identifier = create_user().json()['identifier']
    store_key(identifier, key='foo', value='bar')
    response = delete_key(identifier, key='foo')
    self.assertEqual(202, response.status_code)
    response = get_key(identifier, key='foo')
    self.assertEqual(404, response.status_code)