1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-29 19:54:53 +00:00
seahub/tests/api/test_misc.py

15 lines
562 B
Python
Raw Normal View History

2014-08-28 02:21:28 +00:00
import unittest
2014-09-05 02:07:33 +00:00
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'])