def test_cannot_get_other_user_key(self):
    r1 = create_user()
    r2 = create_user()
    id1 = r1.json()['identifier']
    id2 = r2.json()['identifier']
    store_key(id1, key='foo', value='bar')
    response = get_key(id2, key='foo')
    self.assertEqual(404, response.status_code)
def test_cannot_get_other_user_key(self):
    r1 = create_user()
    r2 = create_user()
    id1 = r1.json()['identifier']
    id2 = r2.json()['identifier']
    store_key(id1, key='foo', value='bar')
    response = get_key(id2, key='foo')
    self.assertEqual(404, response.status_code)