def testDirPython(self):
    self.mox.StubOutWithMock(self.settings, '_Dir')
    self.settings._Dir().AndReturn(['foo', 'bar'])

    self.mox.ReplayAll()
    # NOTE(user): I am not sure why the return order is backwards.
    self.assertEqual(['FOO', 'BAR'], self.settings.__dir__())
    self.mox.VerifyAll()
Safely get the string to print out, try the configured outputter, then
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/BaseSettingsTest.testDirPython--crossover with--dataset/ETHPy150Open saltstack/salt/salt/output/__init__.py/try_printout