summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-04-12 16:25:40 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-04-12 16:25:40 +0200
commitdc656c120b060bc8f8430a0189094a3de83b2ae7 (patch)
treea756199ce568287220fae911adf6b7d190474832 /tests
parenta648ab3cf66830b8abb2de6f91d73fba7727050a (diff)
downloadpykolab-dc656c120b060bc8f8430a0189094a3de83b2ae7.tar.gz
Add test for system.get_domain service method
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/test_wap_client/test_001_connect.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functional/test_wap_client/test_001_connect.py b/tests/functional/test_wap_client/test_001_connect.py
index 42b8aa3..aa0c069 100644
--- a/tests/functional/test_wap_client/test_001_connect.py
+++ b/tests/functional/test_wap_client/test_001_connect.py
@@ -31,8 +31,12 @@ class TestConnect(unittest.TestCase):
self.assertEqual(result['reason'], "Unknown service")
self.assertEqual(result['code'], 400)
- def test_003_domains_list(self):
+ def test_004_domains_list(self):
result = wap_client.domains_list()
self.assertTrue(result.has_key('count'))
self.assertTrue(result.has_key('list'))
self.assertEqual(result['count'], len(result['list']))
+
+ def test_005_get_domain(self):
+ result = wap_client.request_raw('GET', 'system.get_domain')
+ self.assertEqual(result, {u'status': u'OK', u'result': {u'domain': u'example.org'}})