class TestMultiShell(unittest.TestCase): """ Unit tests for calculate_ER (MultiShellModel) """ def setUp(self): from sas.models.MultiShellModel import MultiShellModel self.comp = MultiShellModel() def test(self): """ Test 1D model for a MultiShell """ self.comp.setParam("core_radius", 60) self.comp.setParam("s_thickness", 10) self.comp.setParam("w_thickness", 15) self.comp.setParam("n_pairs", 2) self.assertAlmostEqual(self.comp.calculate_ER(), 95)
def setUp(self): from sas.models.MultiShellModel import MultiShellModel self.comp = MultiShellModel()