2019-09-09 10:59:28 +02:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
from django.test import Client
|
|
|
|
|
2019-11-30 16:08:53 +01:00
|
|
|
pytestmark = pytest.mark.django_db
|
2019-09-09 10:59:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
def test_customer_device_table_not_logged_in():
|
|
|
|
response = Client().get('/customer/1/devices/')
|
|
|
|
assert response.status_code == 302 and 'login' in response.url
|