@@ -0,0 +1,1233 @@
+from unittest import TestCase%0Afrom dusty.compiler.nginx import (nginx_configuration_spec, _nginx_listen_string, _nginx_location_spec,%0A                                  _nginx_proxy_string, _nginx_server_spec)%0A%0Aclass TestPortSpecCompiler(TestCase):%0A    def setUp(self):%0A        self.port_spec_dict_1 = %7B'nginx': %5B%7B'proxied_ip': '127.0.0.1',%0A                                            'proxied_port':'80',%0A                                            'host_address': 'local.gc.com',%0A                                            'host_port': '80'%7D%5D%7D%0A        self.port_spec_dict_2 = %7B'nginx': %5B%7B'proxied_ip': '127.0.0.0',%0A                                            'proxied_port':'8000',%0A                                            'host_address': 'local.gcapi.com',%0A                                            'host_port': '8001'%7D%5D%7D%0A%0A    def test_nginx_configuration_spec(self):%0A        expected_output =%0A        %22%22%22%0A        http %7B%0A            server %7B%0A                listen local.gc.com:80;%0A                location / %7B%0A                    proxy_pass 127.0.0.1:80;%0A                %7D%0A            %7D%0A        %7D%0A        %22%22%22%0A        output = nginx_configuration_spec(self.port_spec_dict_1)%0A        self.assertEqual(output, expected_output)%0A

add in test file