Example #1
0
def test_validate_direction():
    validate.direction(Direction.CAUSE)
    validate.direction(Direction.EFFECT)

    with pytest.raises(ValueError):
        validate.direction("dogeeeee")

    validate.direction(Direction.BIDIRECTIONAL, allow_bi=True)
    with pytest.raises(ValueError):
        validate.direction(Direction.BIDIRECTIONAL)
Example #2
0
def test_validate_direction():
    validate.direction(Direction.CAUSE)
    validate.direction(Direction.EFFECT)

    with pytest.raises(ValueError):
        validate.direction("dogeeeee")

    validate.direction(Direction.BIDIRECTIONAL, allow_bi=True)
    with pytest.raises(ValueError):
        validate.direction(Direction.BIDIRECTIONAL)
Example #3
0
def test_validate_direction():
    with pytest.raises(ValueError):
        assert validate.direction("dogeeeee")
Example #4
0
def test_validate_direction():
    with pytest.raises(ValueError):
        assert validate.direction("dogeeeee")