Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix batch test

  • Loading branch information...
commit 75530f3d357272a38c916e28282843dae1d5d62d 1 parent 66d3951
@coopernurse authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 barrister/test/runtime_test.py
View
10 barrister/test/runtime_test.py
@@ -192,11 +192,11 @@ def test_batch(self):
batch.UserService.create(newUser(userId="1", email="foo@bar.com"))
batch.UserService.create(newUser(userId="2", email="foo@bar.com"))
batch.UserService.countUsers()
- result = batch.send()
- self.assertEquals(3, result.count)
- self.assertEquals(result.get(0)["message"], "user created")
- self.assertEquals(result.get(1)["message"], "user created")
- self.assertEquals(2, result.get(2)["count"])
+ results = batch.send()
+ self.assertEquals(3, len(results))
+ self.assertEquals(results[0].result["message"], "user created")
+ self.assertEquals(results[1].result["message"], "user created")
+ self.assertEquals(2, results[2].result["count"])
def _test_bench(self):
start = time.time()
Please sign in to comment.
Something went wrong with that request. Please try again.