#NEWLINE# def test_eligibility( self ) : #NEWLINE# #INDENT# '\n        test that users are reported as eligible for something\n\n        FIXME: also test constraints on eligibility\n        ' #NEWLINE# for ( auth_system , auth_system_module ) in AUTH_SYSTEMS . iteritems ( ) : #NEWLINE# #INDENT# u = models . User . update_or_create ( user_type = auth_system , user_id = 'foobar_status_update' , info = { #NEWLINE# #INDENT# 'name' : 'Foo Bar Status Update' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( u . is_eligible_for ( { #NEWLINE# #INDENT# 'auth_system' : u , #NEWLINE# #UNINDENT# } ) )