# Path: chat/client.py
# def start(userid=None, key=None):
#     """Start Client.
#     启动客户端。
#     """
#     while True:
#         question = input("\n>>question=")
#         if not userid:
#             userid = "A0001"
#             key = "A0001"
#         if question == "config":
#             result = config(info="", userid=userid, key=key)
#         else:
#             result = match(question=question, userid=userid, key=key)
#         # print(json.loads(result))
#         print(json.loads(result)['content'])


import sys
from unittest import TestCase, main
from chat.client import start

# -*- coding: utf-8 -*-
sys.path.append("../")

class TestMe(TestCase):
    def setUp(self):
        self.userid = "A0002" # 智能客服：医院（名字：舒克）
        self.key = "A0002"

    def test_start(self):
        start(userid=self.userid, key=self.key)



# Path: chat/client.py
# def start(userid=None, key=None):
#     """Start Client.
#     启动客户端。
#     """
#     while True:
#         question = input("\n>>question=")
#         if not userid:
#             userid = "A0001"
#             key = "A0001"
#         if question == "config":
#             result = config(info="", userid=userid, key=key)
#         else:
#             result = match(question=question, userid=userid, key=key)
#         # print(json.loads(result))
#         print(json.loads(result)['content'])


# Path: tests/test_client_bank.py
import sys
from unittest import TestCase, main
from chat.client import start

# -*- coding: utf-8 -*-
sys.path.append("../")

class TestMe(TestCase):
    def setUp(self):
        self.userid = "A0002" # 智能客服：医院（名字：舒克）
        self.key = "A0002"

    def test_start(self):
        start(userid=self.userid, key=self.key)



if __name__ == '__main__':
