Skip to content

Commit c897809

Browse files
authored
Merge pull request #431 from manulera/issue_430
closes #430
2 parents f0fc37f + 0bf5ce8 commit c897809

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sbol2/property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def __init__(self, property_owner, type_uri, reference_type_uri,
935935
super().__init__(property_owner, type_uri, lower_bound, upper_bound,
936936
validation_rules, initial_value)
937937
self.reference_type_uri = reference_type_uri
938-
if self._sbol_owner is not None:
938+
if self._sbol_owner is None:
939939
property_store = []
940940
self._sbol_owner.properties[type_uri] = property_store
941941

test/test_participation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ def test_add_remove_role(self):
1616
p.removeRole(1)
1717
self.assertEqual([sbol2.SO_PROMOTER, sbol2.SO_CDS], p.roles)
1818

19+
def test_init_with_participant(self):
20+
21+
p = sbol2.Participation('p', participant='p1')
22+
self.assertEqual('p1', p.participant)
23+
1924

2025
if __name__ == '__main__':
2126
unittest.main()

0 commit comments

Comments
 (0)