test_specific_post actually has assertions in it (oops)

Test user for test_specific_post has auto_follow=False so we don't create extra Activities.
2019-08-17
Marnanel Thurman 2019-05-29 09:42:35 +01:00
rodzic d0786af451
commit f71e8f0382
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
from django.test import TestCase, Client
from django_kepi.views import InboxView
from django_kepi.models import Thing, create
from django_kepi.models import Thing, create, Following
from django_kepi.validation import IncomingMessage
from unittest import skip
from . import *
@ -21,6 +21,7 @@ class TestInbox(TestCase):
alice = create_person(
name='alice',
auto_follow=False,
)
mock_remote_object(REMOTE_FRED,
@ -43,6 +44,14 @@ class TestInbox(TestCase):
f_object = LOCAL_ALICE,
)
self.assertIs(
len(Following.objects.filter(
follower = REMOTE_FRED,
following = LOCAL_ALICE,
)),
1,
msg="sending Follow did not result in following")
@httpretty.activate
def test_shared_post(self):