X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/213b4064bddea6137014dc4265d17d58b83ba7c4..6c13a3172dd416a42952b1ad32c60f474b38bec5:/tests/dbversion.py diff --git a/tests/dbversion.py b/tests/dbversion.py index 4fcdbd2..218e0c9 100755 --- a/tests/dbversion.py +++ b/tests/dbversion.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # # This file is part of DisOrder. -# Copyright (C) 2007 Richard Kettlewell +# Copyright (C) 2007, 2008 Richard Kettlewell # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -28,12 +28,20 @@ def test(): dtest.copyfile(config, configsave) open(config, "a").write("dbversion 1\n") dtest.start_daemon() + dtest.create_user() + dtest.rescan() dtest.stop_daemon() # Revert to default configuration dtest.copyfile(configsave, config) - print "Testing daemon manages to upgrade..." + print " testing daemon manages to upgrade..." dtest.start_daemon() assert dtest.check_files() == 0, "dtest.check_files" + print " getting server version" + c = disorder.client() + v = c.version() + print "Server version: %s" % v + print " getting server stats" + s = c.stats() if __name__ == '__main__': dtest.run()