def test_deco_layer2(self): """Testing using with context-manager""" with writing(0.05): with self.wired('Manoel'): with writing(0.01): print("I'm losing of my self.") print("I'm exists, really?")
def test_deco_layer3(self): """Mixed tests, nested func-decorated and context-manager""" @self.wired(user='******') def _lain(): print("F**K YOURSELF") print("[#] lambda-shell") print(("λ- (def open-world (next)\n" " (eval next))")) print("λ- (open-world 'next-life)") with self.wired("Lerax"): with writing(0.01): print("I don't ever exists") print("But I'm exists.") print("hacking... hacking...") with writing(0.03): _lain()
def test_deco_layer1(self): """Test decorator with basic usage""" with writing(0.1): @self.wired('Chisa') def _knights(): with writing(0.3): print('suiciding...') _knights()
def test_deco_layer1(self): """Test decorator with basic usage""" with writing(0.01): @self.wired('Chisa') def _knights(): with writing(0.03): print('suiciding...') _knights()
def _knights(): with writing(0.3): print('suiciding...')
def test4(): """Test writing as context manager with args""" with writing(delay=0.05): print("WOOOOOW")
def test3(): """Test writing as context manager""" with writing(): print("LOOOOOL")
def _knights(): with writing(0.03): print('suiciding...')