def should_import_resources(self, xnatProject):
        project = import_project(self.dsc,
                                 xnatProject,
                                 importProjectTree=False)
        xnat = xnatProject._intf

        files = entity_resource_files(xnatProject)
        self.assertEqual(len(project.getResourceNames()), len(list(files)))
    def should_import_resources(self):
        xnatProject, projectURI = self._import_first_project()

        ctx = self.dsc.getContext()
        project = ctx.objectdWithURI(projectURI)

        files = entity_resource_files(xnatProject)
        for f in files:
            fileURI = self.xnat._server + f._uri
            self.assertIsNotNone(project.getResource(fileURI))
    def should_import_resources(self):
        xnatProject,projectURI = self._import_first_project()

        ctx = self.dsc.getContext()
        project = ctx.objectdWithURI(projectURI)

        files = entity_resource_files(xnatProject)
        for f in files:
            fileURI = self.xnat._server + f._uri
            self.assertIsNotNone(project.getResource(fileURI))
    def should_import_resources(self, xnatProject):
        project = import_project(self.dsc, xnatProject, importProjectTree=False)
        xnat = xnatProject._intf

        files = entity_resource_files(xnatProject)
        self.assertEqual(len(project.getResourceNames()), len(list(files)))