mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 02:42:26 +00:00
Merge branch '7.1' into master
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
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)
|
||||
|
Reference in New Issue
Block a user