From 798c06dc95da76b88efcb9600290735e6c576965 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 30 Nov 2006 16:23:01 -0700 Subject: [PATCH] actually add tests --- allmydata/test/__init__.py | 0 allmydata/test/test_client.py | 11 +++++++++++ allmydata/test/test_queen.py | 10 ++++++++++ 3 files changed, 21 insertions(+) create mode 100644 allmydata/test/__init__.py create mode 100644 allmydata/test/test_client.py create mode 100644 allmydata/test/test_queen.py diff --git a/allmydata/test/__init__.py b/allmydata/test/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/allmydata/test/test_client.py b/allmydata/test/test_client.py new file mode 100644 index 00000000..1c1c662d --- /dev/null +++ b/allmydata/test/test_client.py @@ -0,0 +1,11 @@ + +from twisted.trial import unittest + +from allmydata import client + +class Basic(unittest.TestCase): + def testLoadable(self): + c = client.Client("yumyum", "") + c.startService() + return c.stopService() + diff --git a/allmydata/test/test_queen.py b/allmydata/test/test_queen.py new file mode 100644 index 00000000..f9313704 --- /dev/null +++ b/allmydata/test/test_queen.py @@ -0,0 +1,10 @@ + +from twisted.trial import unittest + +from allmydata import queen + +class Basic(unittest.TestCase): + def testLoadable(self): + q = queen.Queen() + q.startService() + return q.stopService() -- 2.45.2