def testBasicPackageThings(self): become_superuser(self.request) myPackage = DebugPackage(self.request, 'test') myPackage.installPackage() assert myPackage.msg == u'foo\nFooPage added \n' testseite2 = Page(self.request, 'TestSeite2') assert testseite2.getPageText() == "Hello world, I am the file testdatei" assert testseite2.isUnderlayPage()
def setup_class(self): request = self.request user_name = 'TestUser' self.user_name = user_name become_superuser(request) User(request, name=user_name, password=user_name).save()
def testBasicPackageThings(self): become_superuser(self.request) myPackage = DebugPackage(self.request, 'test') myPackage.installPackage() assert myPackage.msg == u'foo\nFooPage added \n' testseite2 = Page(self.request, 'TestSeite2') assert testseite2.getPageText( ) == "Hello world, I am the file testdatei" assert testseite2.isUnderlayPage()