web test: test for server key in json welcome

This commit is contained in:
David Stainton 2017-02-23 00:47:48 +00:00 committed by Jean-Paul Calderone
parent 16e56611f3
commit 923363c0d6

View File

@ -743,6 +743,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
d = self.GET("/?t=json")
def _check(res):
decoded = simplejson.loads(res)
self.failUnless("other_nodeid" in decoded['servers'])
self.failUnless("introducers" in decoded.keys())
self.failUnless("servers" in decoded.keys())
d.addCallback(_check)