def test_create(self): self.assertRaises(djhookbox.HookboxError, djhookbox.publish, '/a/', json.dumps({'foo': 'bar'})) djhookbox.create('/a/') djhookbox.publish('/a/', json.dumps({'foo': 'bar'}))
def test_implicit_create(self): djhookbox.publish("/a/", json.dumps({"foo": "bar"})) self.assertCreateCalls({"/a/": 1})
def test_create(self): self.assertRaises(djhookbox.HookboxError, djhookbox.publish, "/a/", json.dumps({"foo": "bar"})) djhookbox.create("/a/") djhookbox.publish("/a/", json.dumps({"foo": "bar"}))