def setUp (self): super (TestCRUDController, self).setUp () self.store = Store() self.app = self.parent = cimarron.skin.Application() self.widget = CRUDController.fromXmlFile ('test/testCrud.xml') self.widget.parent = self.parent self.window = self.widget.window self.widget.store = self.store person= Person.__values__[0] self.setUpControl (target= person, attr=None)
def setUp(self): super(TestCRUDController, self).setUp() self.store = Store() self.app = self.parent = cimarron.skin.Application() self.widget = CRUDController.fromXmlFile('test/testCrud.xml') self.widget.parent = self.parent self.window = self.widget.window self.widget.store = self.store person = Person.__values__[0] self.setUpControl(target=person, attr=None)
def testImport (self): other= CRUDController.fromXmlFile ('test/import.xml') self.assertEqual (other.idDict.has_key ('testButton'), True) self.assert_ (other.idDict.has_key ('TestCheckbox'), True)
def setUp (self): super (TestCRUDController, self).setUp () self.widget= CRUDController.fromXmlFile ('test/testCrud.xml') self.widget.parent= self.parent= self.app person= Person.__values__[0] self.setUpControl (target= person, attr=None)
def testImport(self): other = CRUDController.fromXmlFile('test/import.xml') self.assertEqual(other.idDict.has_key('testButton'), True) self.assert_(other.idDict.has_key('TestCheckbox'), True)