Skip to content

Commit 9006151

Browse files
committed
Tests OSM file open/read (2)
1 parent 5075f30 commit 9006151

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/test_osut.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,34 @@ def test05_construction_thickness(self):
127127
else:
128128
self.assertEqual(round(plenum.volume(), 0), 0)
129129

130+
self.assertTrue(thzone.isVolumeDefaulted())
131+
self.assertTrue(thzone.isVolumeAutocalculated())
132+
self.assertFalse(thzone.volume())
133+
134+
for s in plenum.surfaces():
135+
if s.outsideBoundaryCondition().lower() == "outdoors": continue
136+
137+
# If a SEB plenum surface isn't facing outdoors, it's 1 of 4 "floor"
138+
# surfaces (each facing a ceiling surface below).
139+
adj = s.adjacentSurface()
140+
self.assertTrue(adj)
141+
adj = adj.get()
142+
self.assertEqual(len(adj.vertices()), len(s.vertices()))
143+
144+
# Same vertex sequence? Should be in reverse order.
145+
# for i, vertex in enumerate(adj.vertices()):
146+
# self.assertTrue(mod1.same?(vertex, s.vertices.at(i))).to be true
147+
#
148+
# expect(adj.surfaceType).to eq("RoofCeiling")
149+
# expect(s.surfaceType).to eq("RoofCeiling")
150+
# expect(s.setSurfaceType("Floor")).to be true
151+
# expect(s.setVertices(s.vertices.reverse)).to be true
152+
#
153+
# # Vertices now in reverse order.
154+
# adj.vertices.reverse.each_with_index do |vertex, i|
155+
# expect(mod1.same?(vertex, s.vertices.at(i))).to be true
156+
157+
130158

131159
def test06_insulatingLayer(self):
132160
o = osut.oslg

0 commit comments

Comments
 (0)