Test remote ids

This commit is contained in:
Mouse Reeve 2020-05-12 14:59:14 -07:00
parent bebb4d465b
commit c401d537f2

View file

@ -11,3 +11,9 @@ class BaseModel(TestCase):
instance.id = 1
expected = instance.absolute_id
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
def test_absolute_id_with_remote(self):
instance = FedireadsModel()
instance.remote_id = 'boop doop'
expected = instance.absolute_id
self.assertEqual(expected, 'boop doop')