def test_ciphers(self): for i in range(10000): str = "".join(list([choice(list(map(chr, range(0,255)))) for _ in range(randint(0,3000))])) try: if str != deobfuscate(obfuscate(str)): print "FAILED: %s\n\n\n" % str except: print "EXCEPTION: %s" % str
def __init__(self,user=None,add_user=False,ID=None,require_existing_user=False): self.consumerSecret = obfuscate.deobfuscate(self.secret) if add_user: return self.addUser() self.user = user if ID: self.user = TwitterUser(ID=ID).load() if not self.user: self.setUser(require_existing_user) if not self.user: self.twit = None return self.initializeUserTwit()