def test_api_update(self): api_key = scss.update_api_key('test-user') test = scss.check_api_key(api_key) assert test is True
def test_api_auth_fail(self): api_key = 'bad_data' * 8 test = scss.check_api_key(api_key) assert test is False
def test_userid_fail(self): auth = scss.check_pw('test-user', 'test-password-1234') api_key = scss.get_api_key('test-user', auth) api_status = scss.check_api_key(api_key) test = scss.check_userid(api_status, api_key, '*****@*****.**') assert test is False
def test_api_auth(self): auth = scss.check_pw('test-user', 'test-password-1234') api_key = scss.get_api_key('test-user', auth) test = scss.check_api_key(api_key) assert test is True