def testExperimenter(self): p = ParametersI() p.exp(rlong(1)) self.assertTrue(p.isExperimenter()) self.assertEquals(p.getExperimenter().getValue(), 1L) p.allExps() self.assertFalse(p.isExperimenter())
def testExperimenter(self): p = ParametersI() p.exp(rlong(1)) assert p.isExperimenter() assert p.getExperimenter().getValue() == 1L p.allExps() assert not p.isExperimenter()
def testExperimenter(self): p = ParametersI() p.exp(rlong(1)) assert p.isExperimenter() assert p.getExperimenter().getValue() == 1 p.allExps() assert not p.isExperimenter()
def testOwnerId(self): p = ParametersI() self.assertNull(p.theFilter) p.exp(rlong(1)) self.assertNotNull(p.theFilter) self.assertNotNull(p.theFilter.ownerId) self.assertEquals(rlong(1), p.getExperimenter()) self.assertNull(p.allExps().getExperimenter()) self.assertNotNull(p.theFilter)
def testOwnerId(self): p = ParametersI() self.assertNull(p.theFilter) p.exp(rlong(1)) self.assertNotNull(p.theFilter) self.assertNotNull(p.theFilter.ownerId) assert rlong(1) == p.getExperimenter() self.assertNull(p.allExps().getExperimenter()) self.assertNotNull(p.theFilter)