forked from mirrors/bookwyrm
Test remote ids
This commit is contained in:
parent
bebb4d465b
commit
c401d537f2
1 changed files with 6 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue