Skip to content

Commit

Permalink
Switched test to simpler put method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Murphy committed May 6, 2011
1 parent 729f1d3 commit 060c0d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/test_basic.py
Expand Up @@ -51,10 +51,8 @@ def test_ksk(self, client):
uri = "KSK@" + now.strftime("%Y-%m-%d-%H-%M")
# First put.
testdata = "Testing 123..."
put = IdentifiedMessage("ClientPut", [("Verbosity", 1), ("URI", uri)])
client.sendMessage(put, data=testdata)
response = yield client.deferred["PutSuccessful"]
self.assertEqual(response["Identifier"], put["Identifier"])
response = yield client.put_direct(uri, testdata)
self.assertEqual(response["URI"], uri)
# Then get.
response = yield client.get_direct(uri)
# Finally check the data.
Expand Down

0 comments on commit 060c0d7

Please sign in to comment.