aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-10-11 21:19:01 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-10-11 21:19:01 +0000
commit12ccb6ed63ab06b239528bf9bb8e68986d7fec63 (patch)
treef1a3d0a6081fa15c536c3f11200caaa70eea14c8
parentd1b191b5f1495e636147dde7ff5330a9444f2327 (diff)
downloadpaludis-12ccb6ed63ab06b239528bf9bb8e68986d7fec63.tar.gz
paludis-12ccb6ed63ab06b239528bf9bb8e68986d7fec63.tar.xz
(python) Add tests for InfoAction.
-rw-r--r--python/action.cc3
-rwxr-xr-xpython/action_TEST.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/python/action.cc b/python/action.cc
index 9e72adc..b04132a 100644
--- a/python/action.cc
+++ b/python/action.cc
@@ -230,7 +230,7 @@ void expose_action()
);
/**
- * ConfigAction
+ * InfoAction
*/
bp::class_<InfoAction, bp::bases<Action>, boost::noncopyable>
(
@@ -260,5 +260,6 @@ void expose_action()
class_supports_action_test<InstalledAction>("Installed");
class_supports_action_test<PretendAction>("Pretend");
class_supports_action_test<ConfigAction>("Config");
+ class_supports_action_test<InfoAction>("Info");
}
diff --git a/python/action_TEST.py b/python/action_TEST.py
index 1ba33b9..af93733 100755
--- a/python/action_TEST.py
+++ b/python/action_TEST.py
@@ -108,6 +108,10 @@ class TestCase_09_ConfigAction(unittest.TestCase):
def test_01_create(self):
ConfigAction()
+class TestCase_10_InfoAction(unittest.TestCase):
+ def test_01_create(self):
+ InfoAction()
+
class TestCase_10_SupportsActionTests(unittest.TestCase):
def test_01_create(self):
SupportsInstallActionTest()
@@ -116,6 +120,7 @@ class TestCase_10_SupportsActionTests(unittest.TestCase):
SupportsInstalledActionTest()
SupportsPretendActionTest()
SupportsConfigActionTest()
+ SupportsInfoActionTest()
if __name__ == "__main__":