def test_inDict(self): class Child(rend.Page): pass class Parent(rend.Page): pass p = Parent() p.putChild('child', Child()) return getResource(p, '/child').addCallback( lambda r: self.failUnless(inevow.IResource.providedBy(r.tag)))
def test_inDict(self): class Child(rend.Page): pass class Parent(rend.Page): pass p = Parent() p.putChild('child', Child()) return getResource(p, '/child').addCallback( lambda r: self.assertTrue(inevow.IResource.providedBy(r.tag)))