def METHOD_NAME(self, shell):
    result = self.invoke(args=['--show-completion', shell])
    expected = cli._create_completion(shell)
    self.assertIn(expected, result.output)
    self.assertEqual(result.exit_code, 0)