Skip to content

Commit 50a01cf

Browse files
Chris HooksChris Hooks
authored andcommitted
Changed straggling 'Substatement' to 'SubStatement'
1 parent 865edcf commit 50a01cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/substatement_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_ToJSONEmpty(self):
9898
self.assertEqual(substatement.to_json(), '{"objectType": "SubStatement"}')
9999

100100
def test_ToJSON(self):
101-
substatement = Substatement(object_type='Substatement', actor=Agent(name='test'), verb=Verb(id='test'), object=Activity(id='test'))
101+
substatement = Substatement(object_type='SubStatement', actor=Agent(name='test'), verb=Verb(id='test'), object=Activity(id='test'))
102102
self.assertEqual(substatement.to_json(), '{"verb": {"id": "test"}, "object": {"id": "test"}, "actor": {"name": "test", "objectType": "Agent"}, "objectType": "SubStatement"}')
103103

104104
def test_FromJSONToJSON(self):

tincan/statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def object(self, value):
162162
value.pop('objectType')
163163
if value['object_type'] == 'Agent':
164164
value = Agent(value)
165-
elif value['object_type'] == 'Substatement':
165+
elif value['object_type'] == 'SubStatement':
166166
value = Substatement(value)
167167
elif value['object_type'] == 'StatementRef':
168168
value = StatementRef(value)

0 commit comments

Comments
 (0)