'Tests that global staff has rights to report other user\'s post inspite
of enrolled in the course or not.'

def test_get_ability_with_global_staff(self):

    content = {'user_id': '1', 'type': 'thread'}
    with mock.patch('django_comment_client.utils.check_permissions_by_view') as check_perm:
        check_perm.return_value = False
        global_staff = UserFactory(username='global_staff', email='global_staff@edx.org', is_staff=True)
        self.assertEqual(utils.get_ability(None, content, global_staff), {'editable': False, 'can_reply': False, 'can_delete': False, 'can_openclose': False, 'can_vote': False, 'can_report': True})
