network_inventory/network_inventory/inventory/tests/test_views/test_customer_device_table_...

11 lines
251 B
Python
Raw Normal View History

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