コード例 #1
0
    def test_dump_invalid_path(self):
        service = rospy.get_param(\
                "rapp_knowrob_wrapper_dump_ontology_topic")
        rospy.wait_for_service(service)

        test_service = rospy.ServiceProxy(\
                service, ontologyLoadDumpSrv)

        req = ontologyLoadDumpSrvRequest()
        req.file_url = "/someInvalidPath/testDump.owl"
        response = test_service(req)
        self.assertEqual(response.success, False)
    def test_dump_invalid_path(self):
        service = rospy.get_param(\
                "rapp_knowrob_wrapper_dump_ontology_topic")
        rospy.wait_for_service(service)

        test_service = rospy.ServiceProxy(\
                service, ontologyLoadDumpSrv)

        req = ontologyLoadDumpSrvRequest()
        req.file_url="/someInvalidPath/testDump.owl"
        response = test_service(req)
        self.assertEqual(response.success, False)
コード例 #3
0
    def test_load_nonexistent(self):
        service = rospy.get_param(\
                "rapp_knowrob_wrapper_load_ontology_topic")
        rospy.wait_for_service(service)

        test_service = rospy.ServiceProxy(\
                service, ontologyLoadDumpSrv)

        req = ontologyLoadDumpSrvRequest()
        req.file_url = "11currentOntologyVersion.owl"
        response = test_service(req)
        self.assertEqual(response.success, False)
    def test_load_nonexistent(self):
        service = rospy.get_param(\
                "rapp_knowrob_wrapper_load_ontology_topic")
        rospy.wait_for_service(service)

        test_service = rospy.ServiceProxy(\
                service, ontologyLoadDumpSrv)

        req = ontologyLoadDumpSrvRequest()
        req.file_url="11currentOntologyVersion.owl"
        response = test_service(req)
        self.assertEqual(response.success, False)