diff options
Diffstat (limited to 'tools/python_test.py')
-rw-r--r-- | tools/python_test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py index 888d553..27ec4bd 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -271,3 +271,14 @@ ns = gl.namespaces.list() assert(len(ns) != 0) ns = gl.namespaces.list(search='root')[0] assert(ns.kind == 'user') + +# broadcast messages +msg = gl.broadcastmessages.create({'message': 'this is the message'}) +msg.color = '#444444' +msg.save() +msg = gl.broadcastmessages.list()[0] +assert(msg.color == '#444444') +msg = gl.broadcastmessages.get(1) +assert(msg.color == '#444444') +msg.delete() +assert(len(gl.broadcastmessages.list()) == 0) |