예제 #1
0
 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()
예제 #3
0
    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()
예제 #4
0
 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()