From: Brian Warner Date: Fri, 15 Jan 2010 01:46:32 +0000 (-0800) Subject: test_provisioning: STAN is not always a list. Fix by David-Sarah Hopwood. X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/something?a=commitdiff_plain;h=01a763033423c1209ad983ce389e93956e2193d6;p=tahoe-lafs%2Ftahoe-lafs.git test_provisioning: STAN is not always a list. Fix by David-Sarah Hopwood. --- diff --git a/src/allmydata/test/test_provisioning.py b/src/allmydata/test/test_provisioning.py index f22fe7ae..71bc6570 100644 --- a/src/allmydata/test/test_provisioning.py +++ b/src/allmydata/test/test_provisioning.py @@ -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