def test_task_install(self):
    install_cmd = InstallCommand(self.ctx)
    task_cmd = TaskCommand(self.ctx, task_name='test')
    self.assertEqual(len(task_cmd.ctx.projects), 1)
    with captured_output(stderr=False) as (out, _):
        install_cmd.run()
        task_cmd.run()
    output = out.getvalue()
    self.assertIn('Installing the current project: pkg', output)
    self.assertIn('Poe => python -m unittest discover -s tests -v -p "test_*.py"', output)
def test_task_install(self):
    install_cmd = InstallCommand(self.ctx)
    task_cmd = TaskCommand(self.ctx, task_name='test')
    self.assertEqual(len(task_cmd.ctx.projects), 1)
    with captured_output(stderr=False) as (out, _):
        install_cmd.run()
        task_cmd.run()
    output = out.getvalue()
    self.assertIn('Installing the current project: pkg', output)
    self.assertIn('Poe => python -m unittest discover -s tests -v -p "test_*.py"', output)