summaryrefslogtreecommitdiff
path: root/project2/proj2_s4498062/dns_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'project2/proj2_s4498062/dns_tests.py')
-rwxr-xr-xproject2/proj2_s4498062/dns_tests.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/project2/proj2_s4498062/dns_tests.py b/project2/proj2_s4498062/dns_tests.py
deleted file mode 100755
index 71e5660..0000000
--- a/project2/proj2_s4498062/dns_tests.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env python2
-""" Tests for your DNS resolver and server """
-
-import sys
-import unittest
-
-
-port = 5353
-server = "localhost"
-
-
-class TestResolver(unittest.TestCase):
- """Unit tests for the resolver"""
- pass
-
-
-class TestResolverCache(unittest.TestCase):
- """Unit tests for the resolver cache"""
- pass
-
-
-class TestServer(unittest.TestCase):
- """Unit tests for the server"""
- pass
-
-
-def main():
- """Run the tests"""
- # Parse command line arguments
- import argparse
- parser = argparse.ArgumentParser(description="HTTP Tests")
- 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
-
- # Pass the extra arguments to unittest
- sys.argv[1:] = extra
-
- # Start test suite
- unittest.main()
-
-if __name__ == "__main__":
- main()
-