diff options
author | Camil Staps | 2016-05-02 16:12:13 +0200 |
---|---|---|
committer | Camil Staps | 2016-05-02 16:12:13 +0200 |
commit | ce38b1cc4cd55e3acbc40e664e4ee473afa35b18 (patch) | |
tree | e13341cfee008f1c465b52abe441b7ade31a4505 /project2/proj2_s4498062/dns_tests.py | |
parent | dos2unix (diff) |
pylint project 2
Diffstat (limited to 'project2/proj2_s4498062/dns_tests.py')
-rw-r--r-- | project2/proj2_s4498062/dns_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |