Ejemplo n.º 1
0
def test_recv_robot_info_fail():
    """recv_robot_info should return None on fail"""
    string = "CHAMP 32 21 W"
    result = io.recv_directions(string)
    assert_equals(result, None)
Ejemplo n.º 2
0
def test_recv_directions():
    """recv_directions should return regex result with group equal to
    input on success"""
    string = "LLLRRFFF"
    result = io.recv_directions(string)
    assert_equals(result.group(), string)
Ejemplo n.º 3
0
def test_recv_directions_fail():
    """recv_directions should return None on fail"""
    string = "CHAMPLFLFLFL"
    result = io.recv_directions(string)
    assert_equals(result, None)