def test_cp1252(self):

        gzapper = GremlinZapper()

        result = gzapper.zap_string(u'\x80\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C' +
                                    u'\x8E\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9E\x9F')

        try:
            result.decode('ascii')
        except UnicodeDecodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        else:
            print "It may have been an ascii-encoded unicode string"
    def test_unicode(self):
        gzapper = GremlinZapper()

        result = gzapper.zap_string(Utils.get_random_unicode(10))

        try:
            result.decode('ascii')
        except UnicodeDecodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        except UnicodeEncodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        else:
            print "It may have been an ascii-encoded unicode string"
    def test_unicode(self):
        gzapper = GremlinZapper()

        result = gzapper.zap_string(Utils.get_random_unicode(10))

        try:
            result.decode('ascii')
        except UnicodeDecodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        except UnicodeEncodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        else:
            print "It may have been an ascii-encoded unicode string"
    def test_cp1252(self):

        gzapper = GremlinZapper()

        result = gzapper.zap_string(
            u'\x80\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C' +
            u'\x8E\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9E\x9F')

        try:
            result.decode('ascii')
        except UnicodeDecodeError:
            print "it was not a ascii-encoded unicode string"
            self.fail()
        else:
            print "It may have been an ascii-encoded unicode string"