]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_provisioning: STAN is not always a list. Fix by David-Sarah Hopwood.
authorBrian Warner <warner@lothar.com>
Fri, 15 Jan 2010 01:46:32 +0000 (17:46 -0800)
committerBrian Warner <warner@lothar.com>
Fri, 15 Jan 2010 01:46:32 +0000 (17:46 -0800)
src/allmydata/test/test_provisioning.py

index f22fe7ae66a6ac9aa404b89811674f0511af4d7e..71bc657034046bf56aeb0ee61541f6b73ca56b5f 100644 (file)
@@ -28,7 +28,7 @@ class Provisioning(unittest.TestCase):
         #ctx = RequestContext()
         #unfilled = pt.renderSynchronously(ctx)
         lots_of_stan = pt.do_forms(self.getarg)
-        self.failUnlessEqual(type(lots_of_stan), list)
+        self.failUnless(lots_of_stan is not None)
 
         self.fields = {'filled': True,
                        "num_users": 50e3,
@@ -45,7 +45,7 @@ class Provisioning(unittest.TestCase):
                        }
         #filled = pt.renderSynchronously(ctx)
         more_stan = pt.do_forms(self.getarg)
-        self.failUnlessEqual(type(more_stan), list)
+        self.failUnless(more_stan is not None)
 
         # trigger the wraparound configuration
         self.fields["num_servers"] = 5