Пример #1
0
    def test_eq(self):
        t1 = Task()
        t1.content = "content one"
        t1.status = TaskStatus.TODO
        t1.id = 5

        t2 = Task()
        t2.content = "content one"
        t2.status = TaskStatus.DOING
        t2.id = 7

        self.assertNotEqual(t1, t2)
        t2.id = 5
        self.assertEqual(t1, t2)
Пример #2
0
 def test_get_content(self):
     t = Task()
     t.content = "test 1 2 3"
     self.assertEqual(t.get_content(), "test 1 2 3")