def test_show_license_info(self, runner):
        all_the_licenses = {
            'agpl-3.0': ('GNU Affero General Public License v3.0', 11),
            'apache-2.0': ('Apache License 2.0', 10),
            'artistic-2.0': ('Artistic License 2.0', 9),
            'bsd-2-clause': ('BSD 2-clause "Simplified" License', 7),
            'bsd-3-clause': ('BSD 3-clause "New" or "Revised" License', 8),
            'cc0-1.0': ('Creative Commons Zero v1.0 Universal', 5),
            'epl-1.0': ('Eclipse Public License 1.0', 9),
            'gpl-2.0': ('GNU General Public License v2.0', 10),
            'gpl-3.0': ('GNU General Public License v3.0', 10),
            'isc': ('ISC license', 7),
            'lgpl-2.1': ('GNU Lesser General Public License v2.1', 10),
            'lgpl-3.0': ('GNU Lesser General Public License v3.0', 10),
            'mit': ('MIT License', 7),
            'mpl-2.0': ('Mozilla Public License 2.0', 10),
            'unlicense': ('The Unlicense', 6)
        }

        for short_name, fullname_and_rules_number in all_the_licenses.items():
            result = runner.invoke(info, [short_name])
            output, exit_code = result.output, result.exit_code
            rules = output.split('Forbidden\n')[1].split('\n')
            flat_rules = sum([item.split() for item in rules], [])
            fullname, rules_number = fullname_and_rules_number

            assert exit_code == 0
            assert '</a>' not in output
            assert output in fullname
            assert '{0:<25}{1:<25}{2}'.format(
                'Required', 'Permitted', 'Forbidden') in output
            assert len(flat_rules) == rules_number
dataset/ETHPy150Open lord63/choosealicense-cli/choosealicense/test/test_info.py/TestInfo.test_show_license_info/swapped operands of `in`