Commit 35c0afbb authored by Nikolai Kristiansen's avatar Nikolai Kristiansen
Browse files

Keep python 2 working

parent 2a959c47
......@@ -415,7 +415,6 @@ class DhcpOption(models.Model):
verbose_name = 'DHCP option'
class DhcpCustomField(models.Model):
value = models.CharField(max_length=255)
ip4subnet = models.ForeignKey(Ip4Subnet)
import io
from django.contrib.auth.models import User
from import call_command
from django.core.urlresolvers import reverse
from django.test import TestCase, LiveServerTestCase
from django.utils import six
from django.test import TestCase
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
......@@ -45,12 +45,12 @@ class RunManagementCommands(TestCase):
def test_zone_sync(self):
expected_zone_file = ''
with six.BytesIO() as f:
with io.BytesIO() as f:
call_command('zone-sync', debug=True, stdout=f)
# TODO check expected_zone_file
def test_dhcp_sync(self):
expected_dhcp_file = ''
with six.BytesIO() as f:
with io.BytesIO() as f:
call_command('dhcp-sync', ('--debug',), stdout=f)
# TODO check expected_dhcp_file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment