network_inventory/src/backups/tests/test_backup.py

10 lines
239 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():
2022-03-27 14:50:44 +02:00
backup = mixer.blend("backups.Backup")
assert backup.get_absolute_url() == "/backup/" + str(backup.id) + "/"