#NEWLINE# def test_get_missing_permittee_same_as_target( self ) : #NEWLINE# #INDENT# '\n        Tests that a permittee always has all permissions on itself.\n        ' #NEWLINE# missing = ExpedientPermission . objects . get_missing ( missing . u1 , [ 'can_get_x2' , 'can_read_val' ] , User . objects . filter ( id__in = [ self . u1 . id ] ) ) #NEWLINE# self . assertTrue ( ( missing == ( None , None ) ) ) #NEWLINE# give_permission_to ( 'can_get_x2' , self . u2 , self . u1 ) #NEWLINE# give_permission_to ( 'can_read_val' , self . u2 , self . u1 ) #NEWLINE# missing = ExpedientPermission . objects . get_missing ( self . u1 , [ 'can_get_x2' , 'can_read_val' ] , User . objects . filter ( id__in = [ self . u1 . id , self . u2 . id ] ) ) #NEWLINE# self . assertTrue ( ( missing == ( None , None ) ) ) #NEWLINE# missing = ExpedientPermission . objects . get_missing ( self . o3 , [ 'can_get_x2' , 'can_read_val' ] , PermissionTestClass . objects . filter ( id__in = [ self . o3 . id ] ) ) #NEWLINE# self . assertTrue ( ( missing == ( None , None ) ) )