def test_write_dxf():
    entity = RasterVariables.from_text(RASTERVARIABLES)
    result = TagCollector.dxftags(entity)
    expected = basic_tags_from_text(RASTERVARIABLES)
    assert result == expected
def test_default_init():
    entity = RasterVariables()
    assert entity.dxftype() == "RASTERVARIABLES"
    assert entity.dxf.handle is None
    assert entity.dxf.owner is None
def test_default_new():
    entity = RasterVariables.new(handle="ABBA", owner="0", dxfattribs={})
    assert entity.dxf.class_version == 0
    assert entity.dxf.frame == 0
    assert entity.dxf.quality == 1
    assert entity.dxf.units == 3
def entity():
    return RasterVariables.from_text(RASTERVARIABLES)