Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
    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)