aboutsummaryrefslogtreecommitdiff
path: root/tests/test_objects.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-20 18:07:42 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-07-20 18:07:42 +0200
commitea85e3f6137e8c75e50d07c4511d294cfd9b23b6 (patch)
treebdb1a1de07e028142e442f9bdcf076c6e03800e9 /tests/test_objects.py
parent4852ba0f09ececeb3f542801bedf981217ba6a4c (diff)
Rename Object as APObject
Diffstat (limited to 'tests/test_objects.py')
-rw-r--r--tests/test_objects.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_objects.py b/tests/test_objects.py
index 4f27424..48dfaf1 100644
--- a/tests/test_objects.py
+++ b/tests/test_objects.py
@@ -3,19 +3,19 @@ import unittest
from pyapd import objects
-class TestObjects(unittest.TestCase):
+class TestAPObjects(unittest.TestCase):
def test_activity_from_json(self):
- act = objects.Object.from_jsons('''{
+ act = objects.APObject.from_jsons('''{
"id": "http://example.org/123456",
"type": "object"
}''')
- self.assertIsInstance(act, objects.Object)
+ self.assertIsInstance(act, objects.APObject)
self.assertEqual(act.ap_id, 'http://example.org/123456')
self.assertEqual(act.ap_type, 'object')
def test_activity_to_json(self):
- act = objects.Object(
+ act = objects.APObject(
ap_id="http://example.org/123456",
ap_type="object",
)