Esempio n. 1
0
def test_set_is_done_2():
    task = Task(title='Ugotować obiad', details='pokroic warzywa')
    task.set_is_done(True)
    assert task.is_done is True

    task.set_is_done(False)
    assert task.is_done is False
Esempio n. 2
0
def test_set_is_done():
    task = Task(title='Sprzatanie', details='poodkurzac')
    task.set_is_done(True)
    assert task.is_done is True
Esempio n. 3
0
def test_str_task_is_done():
    task = Task(title='Sprzatanie', details='poodkurzac')
    task.set_is_done(True)
    result = task.__str__()
    expected = 'Sprzatanie\npoodkurzac\nis done: True'
    assert result == expected