query: How to mock a builtin method like 'open' in python?
positive_passages.docid: 156980
positive_passages.text: How do I mock an open used in a with statement (using the Mock framework in Python)?
negative_passages.docid: 44959
negative_passages.text: How to call base.base.method()?
negative_passages.docid: 143071
negative_passages.text: Passing parameters from test methods
negative_passages.docid: 86558
negative_passages.text: How do you generate dynamic (parameterized) unit tests in Python?
negative_passages.docid: 29908
negative_passages.text: What's the best mock framework for Java?
negative_passages.docid: 32960
negative_passages.text: Initialize parameter of method with default value
negative_passages.docid: 1005
negative_passages.text: How do I test a private function or a class that has private methods, fields or inner classes?
negative_passages.docid: 37773
negative_passages.text: How do I detect whether a Python variable is a function?
negative_passages.docid: 1413
negative_passages.text: How do I write an Apex unit test?
negative_passages.docid: 113278
negative_passages.text: Manually raising (throwing) an exception in Python
negative_passages.docid: 145348
negative_passages.text: Java: How to test methods that call System.exit()?
negative_passages.docid: 63258
negative_passages.text: Is there something like python's interactive REPL mode, but for Java?
negative_passages.docid: 89286
negative_passages.text: Mocking on the GAE development server?
negative_passages.docid: 35006
negative_passages.text: How to overload __init__ method based on argument type?
negative_passages.docid: 56390
negative_passages.text: How to detect if a function is called as constructor?
negative_passages.docid: 28056
negative_passages.text: Is there an equivalent of the __noSuchMethod__ feature for properties, or a way to implement it in JS?
negative_passages.docid: 107372
negative_passages.text: Ruby Mocha: is there an equivalent to rspec-mocks' #and_call_original?