mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-30 18:46:19 +00:00
15 lines
575 B
Python
15 lines
575 B
Python
import unittest
|
|
from tests.api.apitestbase import ApiTestBase
|
|
from tests.api.urls import LIST_GROUP_AND_CONTACTS_URL
|
|
|
|
class MiscApiTest(ApiTestBase):
|
|
def test_list_group_and_contacts(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'])
|