Commits

Sam Toyer  committed 9d8a9b9

use "is" instead of "not"

  • Participants
  • Parent commits e8b9c71

Comments (0)

Files changed (1)

File MoinMoin/apps/frontend/_tests/test_frontend.py

 
 class TestFrontend(object):
     def _test_view(self, viewname, status='200 OK', data=('<html>', '</html>'), content_types=('text/html; charset=utf-8', ), viewopts=None):
-        if not viewopts:
+        if viewopts is None:
             viewopts = {}
         print 'GET %s' % url_for(viewname, **viewopts)
         with self.app.test_client() as c:
             return rv
 
     def _test_view_post(self, viewname, status='302 FOUND', content_type='text/html; charset=utf-8', data=('<html>', '</html>'), form=None, viewopts=None):
-        if not viewopts:
+        if viewopts is None:
             viewopts = {}
-        if not form:
+        if form is None:
             form = {}
         print 'POST %s' % url_for(viewname, **viewopts)
         with self.app.test_client() as c: