Updating examples in README to latest API

This commit is contained in:
Jack Danger 2017-07-26 22:57:55 -07:00
commit 3eef3c23b1
2 changed files with 23 additions and 22 deletions

View file

@ -74,8 +74,7 @@ def test_my_model_save():
model_instance = MyModel('steve', 'is awesome')
model_instance.save()
body = conn.Object('mybucket', 'steve').get()[
'Body'].read().decode("utf-8")
body = conn.Object('mybucket', 'steve').get()['Body'].read().decode()
assert body == 'is awesome'