def get(self): parser_dict = parseId() usersList = getDebugUsers() _id = parser_dict[ID] if _id in usersList: logUserIn(_id) return ('') else: return ('Credentials are incorrect', 401)
def get(self): parser_dict = parseId() usersList = getDebugUsers() _id = parser_dict[ID] if _id in usersList: logUserIn(_id) return('') else: return ('Credentials are incorrect', 401)
def testGetDebugUsers(self): RESULT = getDebugUsers() self.assertEqual(TEST_VALID_RESULT, RESULT)