2019-12-10 22:20:34 +01:00
|
|
|
import pytest
|
|
|
|
from mixer.backend.django import mixer
|
|
|
|
|
|
|
|
pytestmark = pytest.mark.django_db
|
|
|
|
|
|
|
|
|
|
|
|
def test_customer_reverse_url():
|
2020-01-10 00:01:06 +01:00
|
|
|
customer = mixer.blend('customers.Customer')
|
2019-12-10 22:20:34 +01:00
|
|
|
assert (customer.get_absolute_url()
|
|
|
|
== "/customer/" + str(customer.id) + "/")
|