Beispiel #1
0
def test_run_invalid_output_str():
    """Check that ouputs that are already strings are handled correctly."""
    randomString = "Hello"
    output = run.get_actual_output(randomString)
    assert randomString in output
Beispiel #2
0
def test_run_invalid_output():
    """Check that invalid unicode bytestrings are handled correctly."""
    invalid_byte_sequence = b"\x80\x81"
    output = run.get_actual_output(invalid_byte_sequence)
    assert invalid_byte_sequence in output