diff options
author | Alec Warner <antarus@gentoo.org> | 2007-07-22 22:17:12 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-07-22 22:17:12 +0000 |
commit | 296c762a5d16f79365414f62f40c4c872b8d7722 (patch) | |
tree | 9cfeb76a13c74b5e1825034a1dc2a7c038fcadd0 | |
parent | 820a9325cde73e72c3f87045e5f91de292807ea2 (diff) | |
download | portage-296c762a5d16f79365414f62f40c4c872b8d7722.tar.gz portage-296c762a5d16f79365414f62f40c4c872b8d7722.tar.bz2 portage-296c762a5d16f79365414f62f40c4c872b8d7722.zip |
add test for CommandOutputSet
svn path=/main/trunk/; revision=7360
-rw-r--r-- | pym/portage/tests/sets/__init__.py | 0 | ||||
-rw-r--r-- | pym/portage/tests/sets/shell/__init__.py | 0 | ||||
-rw-r--r-- | pym/portage/tests/sets/shell/testShell.py | 26 |
3 files changed, 26 insertions, 0 deletions
diff --git a/pym/portage/tests/sets/__init__.py b/pym/portage/tests/sets/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/pym/portage/tests/sets/__init__.py diff --git a/pym/portage/tests/sets/shell/__init__.py b/pym/portage/tests/sets/shell/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/pym/portage/tests/sets/shell/__init__.py diff --git a/pym/portage/tests/sets/shell/testShell.py b/pym/portage/tests/sets/shell/testShell.py new file mode 100644 index 000000000..cc0a1bb87 --- /dev/null +++ b/pym/portage/tests/sets/shell/testShell.py @@ -0,0 +1,26 @@ +# testCommandOututSet.py -- Portage Unit Testing Functionality +# Copyright 2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +from portage.tests import TestCase, test_cps +from portage.sets.shell import CommandOutputSet + +class CommandOutputSetTestCase(TestCase): + """Simple Test Case for CommandOutputSet""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCommand(self): + + input = set(test_cps) + command = "/usr/bin/echo -e " + for a in input: + command += "\"%s\n\"" % a + s = CommandOutputSet('testset', command) + atoms = s.getAtoms() + self.assertEqual(atoms, input) |