예제 #1
0
 def test_get_taskid_url_is_correct(self):
     """Test retrieval of a task id url."""
     task_title = 'Testtask'
     task_list = 'mylist'
     task = TwoDoTask(task_title, for_list=task_list)
     expected_url = ('twodo://x-callback-url/getTaskID?task=Testtask&'
                     'forList=mylist&saveInClipboard=1')
     self.assertEqual(task.get_taskid_url(), expected_url)
예제 #2
0
 def test_method_get_taskid_url_exists(self):
     """Call the method to check if it is there."""
     task_title = 'Test title of the task.'
     task_list = 'errands'
     task = TwoDoTask(task_title, for_list=task_list)
     self.assertIsNotNone(task.get_taskid_url())