Example #1
0
    def test_empty_use_flags_linter(self):
        '''linter: empty_use_flags'''

        expected = [
                ( 'app-portage/layman', [ 'git', 'subversion', 'bazaar' ] ),
                ( 'sys-kernel/upkern', [ 'module-rebuild' ] ),
                ( 'net-print/cups', [ '-usb' ] ),
                ( 'app-backup/rdiff-backup', [ '-*', 'x86' ] ),
                ]

        result = empty_use_flags_linter('/tmp/pclean.test', self.contents)

        self.assertEqual(expected, result)
Example #2
0
    def test_empty_use_flags_linter_package_mask(self):
        '''linter: empty_use_flagsā€”package.mask'''

        result = empty_use_flags_linter('/etc/portage/package.mask', self.contents)

        self.assertEqual(self.contents, result)