aboutsummaryrefslogtreecommitdiff
path: root/tests/test_objects.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-04-14 17:46:11 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-04-14 17:46:11 +0200
commit615c439ad45eee9eb709200e3727d1d6eacaecfe (patch)
tree304341561189d78795c463c00be79a55088efa0f /tests/test_objects.py
parentc279b53fb219e1a943b7092d8db49a28d56f0b08 (diff)
Start working on storage backends
Diffstat (limited to 'tests/test_objects.py')
-rw-r--r--tests/test_objects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_objects.py b/tests/test_objects.py
index 68bc900..4358e41 100644
--- a/tests/test_objects.py
+++ b/tests/test_objects.py
@@ -6,14 +6,14 @@ from pyapd import objects
class TestObjects(unittest.TestCase):
def test_activity_from_json(self):
- act = objects.ActivityObject.from_jsons('''{
+ act = objects.Object.from_jsons('''{
"id": "http://example.org/123456"
}''')
- self.assertIsInstance(act, objects.ActivityObject)
+ self.assertIsInstance(act, objects.Object)
self.assertEqual(act.ap_id, 'http://example.org/123456')
def test_activity_to_json(self):
- act = objects.ActivityObject(
+ act = objects.Object(
id="http://example.org/123456"
)
data = act.to_jsons()