mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-31 11:07:10 +00:00
12 lines
380 B
Python
12 lines
380 B
Python
from seahub.test_utils import BaseTestCase
|
|
|
|
class PingTest(BaseTestCase):
|
|
def test_can_ping(self):
|
|
resp = self.client.get('/api2/ping/')
|
|
self.assertEqual(200, resp.status_code)
|
|
|
|
def test_html_ping(self):
|
|
headers = {'HTTP_ACCEPT': 'text/html'}
|
|
resp = self.client.get('/api2/ping/', **headers)
|
|
self.assertEqual(200, resp.status_code)
|