1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 12:58:34 +00:00
Files
seahub/tests/api/test_misc.py

15 lines
575 B
Python
Raw Normal View History

2014-08-28 10:21:28 +08:00
import unittest
2014-09-05 10:07:33 +08:00
from tests.api.apitestbase import ApiTestBase
2014-09-06 11:38:20 +08:00
from tests.api.urls import LIST_GROUP_AND_CONTACTS_URL
2014-09-05 10:07:33 +08:00
class MiscApiTest(ApiTestBase):
2014-09-06 11:38:20 +08:00
def test_list_group_and_contacts(self):
2014-09-05 10:07:33 +08:00
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'])