def test_points_from_instructions(): wire = Wire() wire.extend_points_from_instructions("U2") assert wire.points == [(0, 0), (0, 1), (0, 2)] wire = Wire() wire.extend_points_from_instructions("U2,R2") assert wire.points == [(0, 0), (0, 1), (0, 2), (1, 2), (2, 2)]