2013-11-15 12:14:36 +01:00

19 lines
366 B
Python

"""
Tests for api package.
"""
import pytest
from django.core.urlresolvers import reverse
def test_myip(client):
response = client.get(reverse('myip'))
assert response.status_code == 200
assert response.content in ['127.0.0.1', '::1']
def test_nic_update(client):
response = client.get(reverse('update'))
assert response.status_code == 401