コード例 #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
ファイル: test_auth.py プロジェクト: c0cky/mediathread
 def setUp(self):
     self.backend = LTIBackend()
     self.lti = LTI('initial', 'any')
     self.lti.lti_params = BASE_LTI_PARAMS.copy()
コード例 #4
0
ファイル: test_lti.py プロジェクト: ccnmtl/mediathread
    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')