network_inventory/inventory/tests/test_models/test_backup.py

11 lines
255 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():
backup = mixer.blend('inventory.Backup')
assert (backup.get_absolute_url()
== "/backup/" + str(backup.id) + "/")