def METHOD_NAME(device, combination):
    # Test every combination raises the correct ValueError
    logger = hoomd.logging.Logger(categories=combination)
    output = StringIO("")
    with pytest.raises(ValueError) as ve:
        hoomd.write.Table(1, logger, output)
    # Ensure that correct error message is sent
    assert "Table Logger may only have scalar or string categories set." in str(
        ve.value)
    # Now ensure category formatting operates correctly
    for category in combination - {"string", "scalar"}:
        assert category in str(ve.value)