예제 #1
0
def test_default_new():
    entity = Ray.new(handle='ABBA',
                     owner='0',
                     dxfattribs={
                         'color': 7,
                         'start': (1, 2, 3),
                         'unit_vector': (4, 5, 6),
                     })
    assert entity.dxf.layer == '0'
    assert entity.dxf.color == 7
    assert entity.dxf.start == (1, 2, 3)
    assert entity.dxf.unit_vector == (4, 5, 6)
예제 #2
0
def test_default_new():
    entity = Ray.new(
        handle="ABBA",
        owner="0",
        dxfattribs={
            "color": 7,
            "start": (1, 2, 3),
            "unit_vector": (4, 5, 6),
        },
    )
    assert entity.dxf.layer == "0"
    assert entity.dxf.color == 7
    assert entity.dxf.start == (1, 2, 3)
    assert entity.dxf.unit_vector == (4, 5, 6)