def test_get_key_after_overwriting_it_is_successful(self):
    response = create_user()
    identifier = response.json()['identifier']
    store_key(identifier, key='foo', value='bar')
    store_key(identifier, key='foo', value='baz')
    response = get_key(identifier, 'foo')
    self.assertEqual(200, response.status_code)
    self.assertEqual('application/json', response.headers['Content-Type'], 'Content-Type should be application/json')
    data = response.json()
    self.assertEqual('baz', data['value'])
def test_get_key_after_overwriting_it_is_successful(self):
    response = create_user()
    identifier = response.json()['identifier']
    store_key(identifier, key='foo', value='bar')
    store_key(identifier, key='foo', value='baz')
    response = get_key(identifier, 'foo')
    self.assertEqual(200, response.status_code)
    self.assertEqual('application/json', response.headers['Content-Type'], 'Content-Type should be application/json')
    data = response.json()
    self.assertEqual('baz', data['value'])