Exemplo n.º 1
0
 def test_make_usage_key_from_deprecated_string_roundtrip(self, url):
     course_key = CourseLocator('org', 'course', 'run')
     with self.assertDeprecationWarning(count=1):
         self.assertEqual(
             url,
             text_type(course_key.make_usage_key_from_deprecated_string(url))
         )
 def test_make_usage_key_from_deprecated_string_roundtrip(self, url):
     course_key = CourseLocator('org', 'course', 'run')
     with self.assertDeprecationWarning(count=2):
         self.assertEquals(
             url,
             course_key.make_usage_key_from_deprecated_string(
                 url).to_deprecated_string())