コード例 #1
0
def test_from_string_for_illegal_value():
    # when:
    try:
        ParameterKind.from_string('abc')
    except MockGeneratorError:
        return
    assert False
コード例 #2
0
def test_from_string(identifier: str, expected_in: bool, expected_out: bool):
    # when:
    kind = ParameterKind.from_string(identifier)

    # then:
    assert kind.is_in() == expected_in
    assert kind.is_out() == expected_out