def assert_get_sailthru_client_raises(self, exc_class, config):
overrides = {<EOL>self.SITE_CODE: {<EOL>'<STR_LIT>': config<EOL>}<EOL>}<EOL>with mock.patch.dict(self.SITE_OVERRIDES_MODULE, overrides):<EOL><INDENT>with self.assertRaises(exc_class):<EOL><INDENT>get_sailthru_client(self.SITE_CODE)<EOL><DEDENT><DEDENT>
Asserts an error is raised by a call to get_sailthru_client.