def METHOD_NAME(self,test_input,only_time,expected_values):
    if only_time: 
        expect = expected_values[-1]
        result = parse_duration(test_input).seconds
        assert expect == result
    else:
        expected_years = expected_values[0]
        expected_months = expected_values[1]
        expected_days = expected_values[2]
        expected_seconds = expected_values[3]
        result = parse_duration(test_input)
        result_years = int(result.years)
        result_months = int(result.months)
        result_days = int(result.days)
        result_seconds = int(result.seconds)
        assert expected_years == result_years
        assert expected_months == result_months
        assert expected_days == result_days
        assert expected_seconds == result_seconds