def _add_entity_keywords(ovEntity, xnatEntity):
    try:
        tags = entity_keywords(xnatEntity)
        for k in tags:
            ovEntity.addTag(k)
    except OvationXnatException:
        pass
def _add_entity_keywords(ovEntity, xnatEntity):
    try:
        tags = entity_keywords(xnatEntity)
        for k in tags:
            ovEntity.addTag(k)
    except OvationXnatException:
        pass
    def should_import_keywords(self, xnatProject):

        project = import_project(self.dsc, xnatProject, importProjectTree=False)

        tags = entity_keywords(xnatProject)
        actualTags = project.getTags()
        for tag in tags:
            self.assertIn(tag, actualTags)
    def should_import_keywords(self):
        xnatProject, projectURI = self._import_first_project()

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

        tags = entity_keywords(xnatProject)
        actualTags = project.getTags()
        for tag in tags:
            self.assertIn(tag, actualTags)
    def should_import_keywords(self, xnatProject):

        project = import_project(self.dsc,
                                 xnatProject,
                                 importProjectTree=False)

        tags = entity_keywords(xnatProject)
        actualTags = project.getTags()
        for tag in tags:
            self.assertIn(tag, actualTags)
    def should_import_keywords(self):
        xnatProject,projectURI = self._import_first_project()

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

        tags = entity_keywords(xnatProject)
        actualTags = project.getTags()
        for tag in tags:
            self.assertIn(tag, actualTags)