def test_set_run_custom_default_command(self):
        application = Application()
        application.set_auto_exit(False)
        command = FooCommand()
        application.add(command)
        application.set_default_command(command.get_name())

        tester = ApplicationTester(application)
        tester.run([])
        self.assertEqual(
            'interact called\ncalled\n',
            tester.get_display()
        )

        application = CustomDefaultCommandApplication()
        application.set_auto_exit(False)

        tester = ApplicationTester(application)
        tester.run([])
        self.assertEqual(
            'interact called\ncalled\n',
            tester.get_display()
        )
Set the unique id of this user.
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_set_run_custom_default_command--crossover with--dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/User.SetId