示例#1
0
 def test_simulation_has_slots(self):
     """Tests that __slots__ work correctly for Simulation."""
     sim = mo.get_simulation()
     utils.assert_has_slots(sim)
示例#2
0
 def test_foils_have_slots(self):
     """Tests that __slots__ work properly for Foils"""
     utils.assert_has_slots(RectangularFoil())
     utils.assert_has_slots(CircularFoil())
示例#3
0
 def test_parsers_have_slots(self):
     """Tests that __slots__ work in CSVParser.
     """
     utils.assert_has_slots(CSVParser())
     utils.assert_has_slots(ToFListParser())
 def test_element_simulation_has_slots(self):
     """Tests that __slots__ declaration works.
     """
     utils.assert_has_slots(self.elem_sim)
示例#5
0
 def test_measurement_has_slots(self):
     m = mo.get_measurement()
     utils.assert_has_slots(m)