MCPcopy
hub / github.com/tum-pbs/PhiFlow / test_properties

Method test_properties

tests/commit/field/test__scene.py:30–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 pass
29
30 def test_properties(self):
31 scene = Scene.create(DIR)
32 self.assertEqual(0, len(scene.properties))
33 scene.put_property('a', 1)
34 scene.put_properties({'b': 2, 'c': 3}, d=4)
35 scene = Scene.at(scene.path)
36 self.assertEqual(4, len(scene.properties))
37 scene.remove()
38
39 def test_batched_properties(self):
40 scenes = Scene.create(DIR, batch(scenes=2))

Callers

nothing calls this directly

Calls 5

createMethod · 0.80
put_propertyMethod · 0.80
put_propertiesMethod · 0.80
removeMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected