Test ArgumentParseManager.parse
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 23 Jul 2013 09:00:50 +0000 (12:00 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 23 Jul 2013 09:00:50 +0000 (12:00 +0300)
kamaki/cli/argument/test.py

index baaefc1..6978fab 100644 (file)
@@ -476,7 +476,11 @@ class ArgumentParseManager(TestCase):
             UP.assert_called_once_with()
 
     def test_parse(self):
-        raise errors.CLIUnimplemented()
+        apm = argument.ArgumentParseManager('exe')
+        parsed, unparsed = apm.parser.parse_known_args()
+        apm.parse()
+        self.assertEqual(apm._parsed, parsed)
+        self.assertEqual(apm.unparsed, unparsed)
 
 
 if __name__ == '__main__':