Updating examples in README to latest API
This commit is contained in:
parent
4028fe1abd
commit
3eef3c23b1
2 changed files with 23 additions and 22 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue