def test_case_2_list_tasks(self): self.data['text'] = '<@UPMT8NZJS> list tasks' self.data['user'] = '******' # data['channel'] = 'xxxx' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertIn('No Active Tasks exist!', response)
def test_case_1_list_tasks(self): self.data['text'] = '<@UPMT8NZJS> list tasks' self.data['user'] = '******' # data['channel'] = 'xxxx' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertIn('Project', response)
def test_case_2_describe_commands(self): # data = {} # data['type'] = 'message' self.data['text'] = 'describe commands' self.data['user'] = '******' # data['channel'] = 'xxxx' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertEqual('Invalid command format', response)
def test_case_1_describe_commands(self): # data = {} # data['type'] = 'message' self.data['text'] = '<@UPMT8NZJS> describe commands' self.data['user'] = '******' # data['channel'] = 'xxxx' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertIn('Command', response)
def test_case_4_create_task(self): self.data['text'] = 'create task SF task sample_task sample_task_description 6' self.data['user'] = '******' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertEqual('Invalid command format', response)
def test_case_3_create_task(self): self.data['text'] = '<@UPMT8NZJS> create task SF task sample_task sample_task_description 6 8' self.data['user'] = '******' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertIn('Too many', response)
def test_case_2_create_task(self): self.data['text'] = '<@UPMT8NZJS> create task SF issue sample_task sample_task_description' self.data['user'] = '******' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertIn('Insufficient', response)
def test_case_3_list_tasks(self): self.data['text'] = 'list tasks' self.data['user'] = '******' r = processMessage(self.data, True) response = r.response[0].decode('utf-8') self.assertEqual('Invalid command format', response)