Ejemplo n.º 1
0
    def doTest(self, label, st_args, reftl = None):
        import pdb
        #pdb.set_trace()
        errors = ""
        st = Stegotorus(st_args)
        try:
            testtl = st.check_completion(label + " tester")
            if ((reftl == None) and (testtl != self.reftl)) or ((reftl != None) and (testtl != reftl)):
                errors += diff("errors in transfer:", self.reftl, testtl)

        except AssertionError, e:
            errors += e.message
Ejemplo n.º 2
0
    def setUpClass(cls):
        # Run tltester once in "internal" mode to get the reference
        # for comparison.  This will throw an exception if something
        # goes wrong, and the whole set will then be skipped.
        import pdb
        #pdb.set_trace()
        cls.testdir = os.path.dirname(__file__)

        cls.testdir = (cls.testdir == '') and '.' or cls.testdir

        cls.reftl = Stegotorus("null", "client", "127.0.0.1:4999",
                               "127.0.0.1:5000").check_completion(cls.__name__)

        cls.http_reftl = Stegotorus(
            "chop", "server", "127.0.0.1:5001", "http", "127.0.0.1:5000",
            "chop", "client", "127.0.0.1:4999", "http",
            "127.0.0.1:5000").check_completion(cls.__name__)
Ejemplo n.º 3
0
    def doTest(self, label, st_args):
        st = Stegotorus(st_args)
        tester = Tltester(self.scriptFile,
                          ("127.0.0.1:4999", "127.0.0.1:5001"))
        errors = ""
        try:
            testtl = tester.check_completion(label + " tester")
            if testtl != self.reftl:
                errors += diff("errors in transfer:", self.reftl, testtl)

        except AssertionError, e:
            errors += e.message
Ejemplo n.º 4
0
 def setUpClass(cls):
     cls.client = Stegotorus("null", "socks", "127.0.0.1:4999")