示例#1
0
 def setUp(self):
     self.lti = LTI('initial', 'any')
     self.lti.lti_params = BASE_LTI_PARAMS.copy()
示例#2
0
    def test_consumer_user_id(self):
        lti = LTI('initial', 'any')
        lti.lti_params = BASE_LTI_PARAMS.copy()
        lti.lti_params['oauth_consumer_key'] = '1234567890'

        self.assertEquals(lti.consumer_user_id(), '1234567890-student')
示例#3
0
 def setUp(self):
     self.backend = LTIBackend()
     self.lti = LTI('initial', 'any')
     self.lti.lti_params = BASE_LTI_PARAMS.copy()
示例#4
0
    def test_consumer_user_id(self):
        lti = LTI('initial', 'any')
        lti.lti_params = BASE_LTI_PARAMS.copy()
        lti.lti_params['oauth_consumer_key'] = '1234567890'

        self.assertEquals(lti.consumer_user_id(), '1234567890-student')