mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-20 01:49:50 +00:00
16 lines
359 B
Python
16 lines
359 B
Python
|
import integration_api as common
|
||
|
import requests
|
||
|
import unittest
|
||
|
|
||
|
class PingApiTestCase(unittest.TestCase):
|
||
|
|
||
|
def setUp(self):
|
||
|
self.res = requests.get(common.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)
|