From e23d18a2f3197786aadb3310097fe78d225c6e14 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Sun, 21 Jul 2019 17:33:29 +0100 Subject: [PATCH] simplify assertion in test_unwrapped_object --- tests/test_outbox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_outbox.py b/tests/test_outbox.py index 1e77723..27f0954 100644 --- a/tests/test_outbox.py +++ b/tests/test_outbox.py @@ -184,16 +184,16 @@ class TestOutbox(TestCase): @httpretty.activate def test_unwrapped_object(self): + items_before = len(Item.objects.all()) + self._send( content = OBJECT_FORM, ) - statuses = Item.objects.filter( - f_attributedTo=json.dumps(ALICE_ID), - ) + items_after = len(Item.objects.all()) self.assertEqual( - len(statuses), + items_after-items_before, 1) def test_create_doesnt_work_on_activities(self):