def test_getDoneItems_showAllDoneItems(done_items): # given (gt5 done items, and _show_all_done_items has value of True) today_done_viewModel = ViewModel(done_items, statuses) today_done_viewModel.show_all_done_items = True # when today_done_items = today_done_viewModel.getDoneItems() # then assert len(today_done_items) == 5
def test_show_all_done_items_setter(): items = [] view_model = ViewModel(items) view_model.show_all_done_items = True assert view_model.show_all_done_items == True