def test_accept_from_refused(): recipe_model = Recipe(status=StatusEnum.refused) recipe_model.accept() assert recipe_model.status == StatusEnum.accepted
def test_accept_from_pending(): recipe_model = Recipe(status=StatusEnum.pending) recipe_model.accept() assert recipe_model.status == StatusEnum.accepted