def test_simulation_has_slots(self): """Tests that __slots__ work correctly for Simulation.""" sim = mo.get_simulation() utils.assert_has_slots(sim)
def test_foils_have_slots(self): """Tests that __slots__ work properly for Foils""" utils.assert_has_slots(RectangularFoil()) utils.assert_has_slots(CircularFoil())
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)
def test_measurement_has_slots(self): m = mo.get_measurement() utils.assert_has_slots(m)