minor adjustements

This commit is contained in:
Gert Wohlgemuth
2018-06-04 13:40:06 -07:00
parent 41d5a566a2
commit 7b101f17b6
3 changed files with 34 additions and 26 deletions

View File

@@ -64,14 +64,14 @@ class TestStrategy(IStrategy):
}
# db should be empty
assert (len(json.loads(aws.names({}, {})['body'])) == 0)
assert (len(json.loads(aws.names({}, {})['body']['result'])) == 0)
# now we add an entry
aws.submit({
"body": json.dumps(request)
}, {})
# now we should have items
assert (len(json.loads(aws.names({}, {})['body'])) == 1)
assert (len(json.loads(aws.names({}, {})['body']['result'])) == 1)
# able to add a second strategy with the sample name, but different user