def test_unsupported_types_for_reverse(var):
    """Test that unsupported types for reverse throw a type error.

    Args:
        var: The base var.
    """
    with pytest.raises(TypeError) as err:
        var.reverse()
    assert err.value.args[0] == "Cannot reverse non-list var."
Test that unsupported types for reverse throw a type error.

    Args:
        var: The base var.
    
tests/units/test_var.py