chiark / gitweb /
add a nontrivial test that actually works
[disorder] / tests / version.py
1 #! /usr/bin/env python
2 import dtest,time,disorder
3
4 def test():
5     """Ask the server its version number"""
6     time.sleep(2)                       # give the daemon a chance to start up
7     c = disorder.client()
8     v = c.version()
9     print "Server version: %s" % v
10
11 if __name__ == '__main__':
12     dtest.run(test)