mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-18 09:12:55 +00:00
15 lines
350 B
Python
15 lines
350 B
Python
from integration_api import PING_URL
|
|
import requests, unittest
|
|
|
|
class PingApiTestCase(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
self.res = requests.get(PING_URL)
|
|
|
|
def testPingApi(self):
|
|
self.assertEqual(self.res.status_code, 200)
|
|
self.assertRegexpMatches(self.res.text, u'"pong"')
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(verbosity=2)
|