network_inventory/inventory/tests/test_models/test_backup.py
Andreas Zweili dcc3e39914 restructure the project
Make the file tree a bit flatter in order to make the project less confusing
2020-01-07 18:10:57 +01:00

11 lines
255 B
Python

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) + "/")