def test_echo_method_human_custom_output(self):
        func = self.command._echo_method(lambda: adict(foo='bar', spam='eggs'))
        with mock.patch.object(click, 'secho') as secho:
            with settings.runtime_values(format='human'):
                func()
            output = secho.mock_calls[-1][1][0]
        self.assertIn('foo spam', output)
        self.assertIn('bar eggs', output)
Wait up to `timeout` seconds until `socket` is ready for reading.
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/SubcommandTests.test_echo_method_human_custom_output--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/mainloop/wait.py/wait_for_read