예제 #1
0
파일: testLogin.py 프로젝트: cecoo/pycate
class SimpleWidgetTestCase(unittest.TestCase):
    def setUp(self):
        # from model.info_model import MInfo
        self.payload = {'user_name': 'giser',
                        'user_pass': '******',
                        }
        self.muser = MUser()
        self.r = requests.post('http://jiheying.com/member/login', self.payload)
        # self.r2 = requests.post('http://192.168.4.166:8004/member/regist', self.payload)

    def tearDown(self):
        self.muser.delete_by_user('value1')
예제 #2
0
파일: testRegist.py 프로젝트: cecoo/pycate
class SimpleWidgetTestCase(unittest.TestCase):
    def setUp(self):
        # from model.info_model import MInfo
        self.payload = {'user_name': 'value1', 'user_pass': '******',
                        'user_pass2': 'fdfsrwe',
                        'xemail': '*****@*****.**',
                        'xtel': '131321342'}
        self.muser = MUser()
        self.r = requests.post('http://192.168.4.166:8004/member/regist', self.payload)
        self.r2 = requests.post('http://192.168.4.166:8004/member/regist', self.payload)

    def tearDown(self):
        self.muser.delete_by_user('value1')