def test_check_mssql_transactionlogs(section):
    assert list(
        msdt.check_mssql_transactionlogs(
            'MSSQL46.CorreLog_Report_T.CorreLog_Report_T_log',
            Parameters({}),
            section,
            None,
        ), ) == [
            Result(
                state=state.OK,
                summary='Used: 16.0 MiB',
            ),
            Metric('data_size', 16777216.0, boundaries=(0, 2199023255552.0)),
            Result(
                state=state.OK,
                summary='Allocated used: 16.0 MiB',
            ),
            Result(
                state=state.OK,
                summary='Allocated: 256 MiB',
            ),
            Metric('allocated_size',
                   268435456.0,
                   boundaries=(0, 2199023255552.0)),
            Result(
                state=state.OK,
                summary="Maximum size: 2.00 TiB",
            ),
        ]
def test_check_mssql_transactionlogs(item, section_mssql, section_df, check_results):
    assert (
        list(
            msdt.check_mssql_transactionlogs(
                item,
                {},
                section_mssql,
                section_df,
            )
        )
        == check_results
    )