Beispiel #1
0
 def setUp(self):
     self.lti = LTI('initial', 'any')
     self.lti.lti_params = BASE_LTI_PARAMS.copy()
Beispiel #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')
Beispiel #3
0
 def setUp(self):
     self.backend = LTIBackend()
     self.lti = LTI('initial', 'any')
     self.lti.lti_params = BASE_LTI_PARAMS.copy()
Beispiel #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')