def _TestNotImplemented(self, method_name, *args, **kwargs):
    self.assertRaises(
        NotImplementedError,
        getattr(self.settings, method_name),
        *args,
        **kwargs)
Helper function to test NotImplementedError on a method.
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/BaseSettingsTestBase._TestNotImplemented