def test_default_new(): entity = Sun.new(handle="ABBA", owner="0", dxfattribs={}) assert entity.dxf.version == 1 assert entity.dxf.status == 1 assert entity.dxf.color == 7 assert entity.dxf.true_color == 16777215 assert entity.dxf.intensity == 1 assert entity.dxf.shadows == 1 assert entity.dxf.julian_day == 2456922 assert entity.dxf.time == 43200 assert entity.dxf.daylight_savings_time == 0 assert entity.dxf.shadow_type == 0 assert entity.dxf.shadow_map_size == 256 assert entity.dxf.shadow_softness == 1
def test_write_dxf(): entity = Sun.from_text(SUN) result = TagCollector.dxftags(entity) expected = basic_tags_from_text(SUN) assert result == expected
def test_default_init(): entity = Sun() assert entity.dxftype() == "SUN" assert entity.dxf.handle is None assert entity.dxf.owner is None
def entity(): return Sun.from_text(SUN)