#NEWLINE# def testUserPolicyInvocation2( self ) : #NEWLINE# #INDENT# recipestr1 = "\nclass TestUserInfo(UserInfoRecipe):\n    name = 'info-foo'\n    version = '0'\n    clearBuildReqs()\n\n    def setup(r):\n        r.User('foo', 11)\n        # policies exist, even though they're not advertised. ensure they can't\n        # do any harm\n        r.ComponentSpec('manpage:foo', '.*')\n" #NEWLINE# ( built , d ) = self . buildRecipe ( recipestr1 , 'TestUserInfo' ) #NEWLINE# self . assertEquals ( d [ 0 ] [ 0 ] , 'info-foo:group' ) #NEWLINE# self . assertEquals ( built [ 1 ] [ 0 ] , 'info-foo:user' )