def assertValidUser(self, user):

        self.assert_(isinstance(user, typepad.User),
            'object %r is not a typepad.User' % user)
        self.assert_(user.id)
        self.assert_(user.url_id)
        self.assert_(len(user.object_types) > 0)
        self.assertEquals(user.object_types[0],
            'tag:api.typepad.com,2009:User')
        self.assertEquals(user.object_type, 'User')
        # this asserts as false when the user's interests is empty
        # self.assert_(user.interests)

        self.assert_(user.make_self_link())
        self.assert_(user.profile_page_url is not None)
        self.assert_(user.avatar_link is not None)
        try:
            self.assert_(user.avatar_link.url_template is not None)
        except AssertionError:
            self.assert_(user.avatar_link.url is not None)
        self.assert_(user.avatar_link.width is not None)
        self.assert_(user.avatar_link.height is not None)
Instantiate the declarative hierarchy for the node.
dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestGroup.assertValidUser--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/compiler_nodes.py/EnamlDefNode.__call__