def assertValidUser(self, user):
        """Checks given asset for properties that should be present on all assets.
        """

        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 __HOLE__:
            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)
dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestGroup.assertValidUser