mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-08 08:19:30 +00:00
14 lines
386 B
Python
14 lines
386 B
Python
|
''' testing models '''
|
||
|
from django.test import TestCase
|
||
|
|
||
|
from fedireads.models.base_model import FedireadsModel
|
||
|
from fedireads.settings import DOMAIN
|
||
|
|
||
|
|
||
|
class BaseModel(TestCase):
|
||
|
def test_absolute_id(self):
|
||
|
instance = FedireadsModel()
|
||
|
instance.id = 1
|
||
|
expected = instance.absolute_id
|
||
|
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
|