comparison MoinMoin/_tests/test_packages.py @ 3070:ed1a433803c6

PEP8 fixes
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 22 Feb 2008 19:28:52 +0100
parents 726f96c0f12e
children 8a1f1a9dd37f
comparison
equal deleted inserted replaced
3069:15d744f727c9 3070:ed1a433803c6
99 99
100 def testAllCreate(self): 100 def testAllCreate(self):
101 package = PackagePages(self.request.rootpage.page_name, self.request) 101 package = PackagePages(self.request.rootpage.page_name, self.request)
102 temp = tempfile.NamedTemporaryFile(suffix='.zip') 102 temp = tempfile.NamedTemporaryFile(suffix='.zip')
103 package.collectpackage(self.request.rootpage.getPageList( 103 package.collectpackage(self.request.rootpage.getPageList(
104 include_underlay=False, 104 include_underlay=False,
105 filter=lambda name: not wikiutil.isSystemPage(self.request, name)), 105 filter=lambda name: not wikiutil.isSystemPage(self.request, name)),
106 temp) 106 temp)
107 if package: 107 if package:
108 py.test.skip("No user created pages in wiki!") 108 py.test.skip("No user created pages in wiki!")
109 assert zipfile.is_zipfile(temp.name) 109 assert zipfile.is_zipfile(temp.name)
110 110
112 package = PackagePages(self.request.rootpage.page_name, self.request) 112 package = PackagePages(self.request.rootpage.page_name, self.request)
113 temp = tempfile.NamedTemporaryFile(suffix='.zip') 113 temp = tempfile.NamedTemporaryFile(suffix='.zip')
114 package.collectpackage(['___//THIS PAGE SHOULD NOT EXIST\\___'], temp) 114 package.collectpackage(['___//THIS PAGE SHOULD NOT EXIST\\___'], temp)
115 assert not zipfile.is_zipfile(temp.name) 115 assert not zipfile.is_zipfile(temp.name)
116 coverage_modules = ['MoinMoin.packages'] 116 coverage_modules = ['MoinMoin.packages']
117