def test_template_rules(self, runner, tmpdir):
        po_file = build_po_string(
            '#: foo/foo.py:5\n'
            'msgid "Foo %(o)s baz"\n'
            'msgstr ""\n')
        fn = tmpdir.join('messages.pot')
        fn.write(po_file)

        result = runner.invoke(cli, ('lint', '--rules', 'W501', str(fn)))
        assert result.exit_code == 0
        assert result.output in 'W501: one character variable name "o"'
dataset/ETHPy150Open willkg/dennis/tests/test_cmdline.py/TestLint.test_template_rules/swapped operands of `in`