개정판 aae9fc00
issue #1366: test
Change-Id: I0af66f558224cadd999d9e43afd90793a601e654
DTI_PID/DTI_PID/AppWebService.py | ||
---|---|---|
15 | 15 |
""" This is AppDatabase class """ |
16 | 16 |
|
17 | 17 |
def __init__(self): |
18 |
self._url = 'http://127.0.0.1:5000/'
|
|
18 |
self._url = 'http://127.0.0.1:8080/'
|
|
19 | 19 |
|
20 | 20 |
def text_connection(self): |
21 | 21 |
try: |
22 | 22 |
response = requests.get(self._url) |
23 |
if response.status_code is 200:
|
|
23 |
if response.status_code == 200:
|
|
24 | 24 |
return True |
25 | 25 |
else: |
26 | 26 |
return False |
내보내기 Unified diff