def should_import_attrs(self): self._init_xnat_connection() (subject, xnatSubject) = self._import_entity() attributes = xnat_api(xnatSubject.attrs) attrs = xnatSubject.attrs for attr in attributes: if is_atomic_attribute(xnatSubject, attrs): value = xnat_api(attrs.get, attr) eq_(subject.getOwnerProperty(attr), value)
def should_import_attrs(self): self._init_xnat_connection() (subject,xnatSubject) = self._import_entity() attributes = xnat_api(xnatSubject.attrs) attrs = xnatSubject.attrs for attr in attributes: if is_atomic_attribute(xnatSubject, attrs): value = xnat_api(attrs.get, attr) eq_(subject.getOwnerProperty(attr), value)
def should_import_attrs(self): projectName = 'PROJECT_NAME' xnatSubject = subject_mock('1', projectName) subject = import_subject(self.dsc, xnatSubject) attributes = xnat_api(xnatSubject.attrs) attrs = xnatSubject.attrs for attr in attributes: if is_atomic_attribute(attrs(), attrs): value = xnat_api(attrs.get, attr) eq_(subject.getOwnerProperty(attr), value)