'Test to check the course_finance_admin role with valid key
but doesn\'t have access to the function'

def test_access_course_finance_admin_with_valid_course_key(self):

    func = Mock()
    decorated_func = require_finance_admin(func)
    request = self.mock_request()
    response = decorated_func(request, 'valid/course/key')
    self.assertEqual(response.status_code, 403)
    self.assertFalse(func.called)
