Beispiel #1
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
Beispiel #2
0
def test_str():
    task = Task(title='Sprzatanie', details='poodkurzac')
    result = task.__str__()
    expected = 'Sprzatanie\npoodkurzac\nis done: False'
    assert result == expected