network_inventory/backend/backups/tests/test_backup.py

11 lines
253 B
Python
Raw Normal View History

2019-12-10 22:20:34 +01:00
import pytest
from mixer.backend.django import mixer
pytestmark = pytest.mark.django_db
def test_backup_reverse_url():
2020-01-11 17:04:33 +01:00
backup = mixer.blend('backups.Backup')
2019-12-10 22:20:34 +01:00
assert (backup.get_absolute_url()
== "/backup/" + str(backup.id) + "/")