| Trees | Indices | Help |
|
|---|
|
|
1 # testCommandOututSet.py -- Portage Unit Testing Functionality 2 # Copyright 2007 Gentoo Foundation 3 # Distributed under the terms of the GNU General Public License v2 4 5 from portage.process import find_binary 6 from portage.tests import TestCase, test_cps 7 from portage._sets.shell import CommandOutputSet 810 """Simple Test Case for CommandOutputSet""" 11 14 172919 20 input = set(test_cps) 21 command = find_binary("bash") 22 command += " -c '" 23 for a in input: 24 command += " echo -e \"%s\" ; " % a 25 command += "'" 26 s = CommandOutputSet(command) 27 atoms = s.getAtoms() 28 self.assertEqual(atoms, input)
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat May 18 16:59:39 2013 | http://epydoc.sourceforge.net |