コード例 #1
0
 def test_parse_resource_ok(self):
     """
         Checks CloubedArgumentParser.parse_resource() should return a list
         with the 2 parts of the resource
     """
     sys.argv = ["cloubed", "xml", "--resource", "part1:part2"]
     parser = CloubedArgumentParser(u"test_description")
     parser.add_args()
     parser.parse_args()
     self.assertEquals(parser.parse_resource(), ["part1", "part2"])