def test_obj_method_decorators(self):
        threadlocals.push_frame()
        d = threadlocals.get_thread_locals()
        
        for obj in self.objs:
            d["user_kw"] = self.u1
            self.assertEqual(obj.get_val_x2(), 2)
            d["user_kw"] = self.u2
            self.assertEqual(obj.get_val_x3_other_val(), 3)
            d["test_kw"] = self.o3
            self.assertEqual(obj.get_val_x4(), 4)
            d["user_kw"] = self.u1
            self.assertEqual(obj.get_val_x5_username(), 5)
        
        for obj in self.objs:
            d["user_kw"] = self.u2
            self.assertRaises(PermissionDenied, obj.get_val_x2, obj)
            d["user_kw"] = self.o3
            if obj != self.o3: self.assertRaises(PermissionDenied, obj.get_val_x3_other_val)
            d["test_kw"] = self.objs[1]
            if obj != self.objs[1]: self.assertRaises(PermissionDenied, obj.get_val_x4)
            d["user_kw"] = self.u2
            self.assertRaises(PermissionDenied, obj.get_val_x5_username, obj)
The group object should be in the context
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/tests/tests.py/TestObjectPermissions.test_obj_method_decorators--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupUpdateViewTest.test_group_added_to_context