

def test_check_has_perm(self):
    'User with django permission has perm to change video.'
    vid = VideoFactory(creator=self.user)
    u = UserFactory()
    add_permission(u, Video, 'change_video')
    check_media_permissions(self, u, 'change')

dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py CheckPermissionsTestCase.test_check_has_perm/VarMisuse@40/71 `vid`->`self`