mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 05:01:05 +02:00
10 lines
253 B
Python
10 lines
253 B
Python
import pytest
|
|
from mixer.backend.django import mixer
|
|
|
|
pytestmark = pytest.mark.django_db
|
|
|
|
|
|
def test_computer_reverse_url():
|
|
computer = mixer.blend("computers.Computer")
|
|
assert computer.get_absolute_url() == "/computer/" + str(computer.id) + "/"
|