def testTitleOrId(self): zitem = ZItem() zitem.id = "testid" self.assertEquals( "testid", zitem.titleOrId() ) self.assertEquals( "testid", zitem.title_or_id() ) zitem.title = "testtitle" self.assertEquals( "testtitle", zitem.titleOrId() ) self.assertEquals( "testtitle", zitem.title_or_id() )
def testTitleOrId(self): zitem = ZItem() zitem.id = "testid" self.assertEquals("testid", zitem.titleOrId()) self.assertEquals("testid", zitem.title_or_id()) zitem.title = "testtitle" self.assertEquals("testtitle", zitem.titleOrId()) self.assertEquals("testtitle", zitem.title_or_id())
def testGetId(self): zitem = ZItem() zitem.id = "testid" self.assertEquals( "testid", zitem.getId() )
def testGetId(self): zitem = ZItem() zitem.id = "testid" self.assertEquals("testid", zitem.getId())