1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-08 02:23:44 +00:00
seahub/tests/api/test_misc.py
2014-09-05 13:51:44 +08:00

15 lines
562 B
Python

import unittest
from tests.common.utils import apiurl
from tests.api.apitestbase import ApiTestBase
class MiscApiTest(ApiTestBase):
def test_list_group_and_contacts_api(self):
res = self.get(LIST_GROUP_AND_CONTACTS_URL).json()
self.assertIsNotNone(res)
self.assertIsInstance(res['contacts'], list)
self.assertIsNotNone(res['umsgnum'])
self.assertIsNotNone(res['replynum'])
self.assertIsInstance(res['groups'], list)
self.assertIsNotNone(res['gmsgnum'])
self.assertIsNotNone(res['newreplies'])