Esempio n. 1
0

import delta_debugging_core



class Svs_tester:

    def test(self,data):

        aux="antiago"

        if data==aux or aux in data:
            return True
        else:
            return False


svs_tester=Svs_tester()

debu= delta_debugging_core.delta_debugger("Santiago lkjsff aaa Velez Saffon antiago",svs_tester)

debu.all_test=True



print(debu.start())



        print complete

        try:

            content = urllib2.urlopen(complete)

            content.read()

            if content.getcode() is 200:
                return True

            return False

        except urllib2.HTTPError as e:
            print e.code
            print e.read()


tester = http_tester("https://maps.googleapis.com/maps/api/staticmap?")

debu = delta_debugging_core.delta_debugger("center=Berkeley&zoom=14&size=412x411x300", tester)

debu.all_test = True

debu.iter_limits = True

debu.iterations = 4


print (debu.start())