mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-26 00:59:10 +02:00
11 lines
267 B
Python
11 lines
267 B
Python
import pytest
|
|
from mixer.backend.django import mixer
|
|
|
|
pytestmark = pytest.mark.django_db
|
|
|
|
|
|
def test_customer_reverse_url():
|
|
customer = mixer.blend('customers.Customer')
|
|
assert (customer.get_absolute_url()
|
|
== "/customer/" + str(customer.id) + "/")
|