示例#1
0
    def test_is_completed(self):
        task = TaskStatus("task")
        self.assertFalse(task.is_completed())

        task.start()
        self.assertFalse(task.is_completed())

        task.complete()
        self.assertTrue(task.is_completed())
    def test_is_completed(self):
        task = TaskStatus("task")
        self.assertFalse(task.is_completed())

        task.start()
        self.assertFalse(task.is_completed())

        task.complete()
        self.assertTrue(task.is_completed())
示例#3
0
 def test_update_to(self):
     task = TaskStatus("task")
     task.update_to("completed")
     self.assertEqual(task.completed, task.status)
     self.assertTrue(task.is_completed())
 def test_update_to(self):
     task = TaskStatus("task")
     task.update_to("completed")
     self.assertEqual(task.completed, task.status)
     self.assertTrue(task.is_completed())
示例#5
0
 def test_update_to(self):
     task = TaskStatus('task')
     task.update_to('completed')
     self.assertEqual(task.completed, task.status)
     self.assertTrue(task.is_completed())