@patch('prestoadmin.main.load_config', side_effect=mock_load_topology())
    def test_nodeps_check(self, unused_mock_load):
        env.nodeps = True
        try:
            main.main(['topology', 'show', '--nodeps'])
        except __HOLE__ as e:
            self.assertEqual(e.code, 2)
        self.assertTrue('Invalid argument --nodeps to task: topology.show\n'
                        in self.test_stderr.getvalue())
        self.assertTrue('Displaying detailed information for task '
                        '\'topology show\':\n\n    Shows the current topology '
                        'configuration for the cluster (including the\n    '
                        'coordinators, workers, SSH port, and SSH username)'
                        '\n\n' in self.test_stdout.getvalue())
dataset/ETHPy150Open prestodb/presto-admin/tests/unit/test_main.py/TestMain.test_nodeps_check