def test_complete(self): t = Task(name='task') t.complete() self.assertEqual(t.status, 'complete') self.assertTrue(t.is_complete()) self.assertTrue(t.is_done()) self.assertFalse(t.is_failed())
def test_pending_task(self): t = Task(name='task') t.pending() self.assertEqual(t.status, 'pending') self.assertTrue(t.is_pending()) self.assertFalse(t.is_done())
def test_skipped(self): t = Task() t.skip(foo='bar') self.assertEqual(t.status, 'skipped') self.assertTrue(t.is_skipped()) self.assertTrue(t.is_done())