daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import my_package
  2.  
  3. def method_override():
  4.     return "Foo"
  5.  
  6. my_package.some_method = method_override
  7.    
  8. from my_package import some_method
  9.    
  10. import my_package
  11.  
  12. def method_override():
  13.     return "Foo"
  14.  
  15. my_package.some_method.func_code = method_override.func_code
  16.    
  17. from foo.bar import baz
  18.    
  19. from bar import baz
  20.    
  21. from robot.libraries.BuiltIn import BuiltIn
  22. class SeleniumTestLibrary(object):
  23.   def element_should_be_really_visible(self):
  24.     s2l = BuiltIn().get_library_instance('Selenium2Library')
  25.     element = s2l._element_find(locator, True, False)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top