Test remote ids
This commit is contained in:
parent
bebb4d465b
commit
c401d537f2
|
@ -11,3 +11,9 @@ class BaseModel(TestCase):
|
||||||
instance.id = 1
|
instance.id = 1
|
||||||
expected = instance.absolute_id
|
expected = instance.absolute_id
|
||||||
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
|
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 New Issue