def test_create_course_completion(self): """ The ``create_course_completion`` method isn't implemented at the base, and should raise ``NotImplementedError``. """ with self.assertRaises(NotImplementedError): IntegratedChannelApiClient('fake-config').create_course_completion( 'fake-user', 'fake-payload')
def test_delete_content_metadata(self): """ The ``delete_content_metadata`` method isn't implemented at the base, and should raise ``NotImplementedError``. """ with self.assertRaises(NotImplementedError): IntegratedChannelApiClient('fake-config').delete_content_metadata( 'fake-payload')
def test_missing_config(self): """ Initiating an API client without an Enterprise Configuration raises ``ValueError``. """ with self.assertRaises(ValueError): IntegratedChannelApiClient(None)