network_inventory/devices/tests/test_connected_device.py
2020-02-15 18:50:51 +01:00

11 lines
272 B
Python

import pytest
from mixer.backend.django import mixer
pytestmark = pytest.mark.django_db
def test_device_reverse_url():
device = mixer.blend('devices.ConnectedDevice')
assert (device.get_absolute_url()
== "/connected_device/" + str(device.id) + "/")