From ce38b1cc4cd55e3acbc40e664e4ee473afa35b18 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 2 May 2016 16:12:13 +0200 Subject: pylint project 2 --- project2/proj2_s4498062/dns_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'project2/proj2_s4498062/dns_tests.py') diff --git a/project2/proj2_s4498062/dns_tests.py b/project2/proj2_s4498062/dns_tests.py index be7da9b..b62180b 100644 --- a/project2/proj2_s4498062/dns_tests.py +++ b/project2/proj2_s4498062/dns_tests.py @@ -4,8 +4,8 @@ import sys import unittest -PORT = 5353 -SERVER = "localhost" +port = 5353 +server = "localhost" class TestResolver(unittest.TestCase): """Unit tests for the resolver""" @@ -30,8 +30,8 @@ def main(): parser.add_argument("-s", "--server", type=str, default="localhost") parser.add_argument("-p", "--port", type=int, default=5001) args, extra = parser.parse_known_args() - PORT = args.port - SERVER = args.server + port = args.port + server = args.server # Pass the extra arguments to unittest sys.argv[1:] = extra -- cgit v1.2.3