'Helper fn to set up mocking for lti 2.0 request test'

def setup_system_xmodule_mocks_for_lti20_request_test(self):

    self.system.get_real_user = Mock(return_value=self.USER_STANDIN)
    self.xmodule.max_score = Mock(return_value=1.0)
    self.xmodule.get_client_key_secret = Mock(return_value=('test_client_key', u'test_client_secret'))
    self.xmodule.verify_oauth_body_sign = Mock()
