import unittest
import http.client
import time

class TestStringMethods(unittest.TestCase):

    def test_404NoConfig(self):
        connRouter = http.client.HTTPConnection("localhost", 8666)
        connConfig = http.client.HTTPConnection("localhost", 8888)
        connRouter.request("GET", "/google2")
        response = connRouter.getresponse()
        connRouter.close()
        self.assertEqual(response.status, 404)

    def test_200WithConfig(self):
        
        connConfig = http.client.HTTPConnection("localhost", 8888)
        connConfig.request("GET","/configure?location=/google&upstream=http://www.google.com/&ttl=10")
        response = connConfig.getresponse()
        data = response.read()
        connConfig.close()
        self.assertEqual(response.status, 200)

        connRouter = http.client.HTTPConnection("localhost", 8666)
        connRouter.request("GET", "/google")
        response = connRouter.getresponse()
        data = response.read()
        self.assertEqual(response.status, 302)
        connRouter.close()

        connConfig2 = http.client.HTTPConnection("localhost", 8888)
        connConfig2.request("DELETE","/configure?location=/google")
        response2 = connConfig2.getresponse()
        data = response2.read()
        self.assertEqual(response2.status, 200)
        connConfig2.close()
        time.sleep(20)
        




if __name__ == '__main__':
    unittest.main()

@@ -294,17 +294,16 @@
 %22/google
-2
 %22)%0A     
@@ -450,25 +450,16 @@
 (self):%0A
-        %0A
         

Fix test to use /google instead of /google2