If I have a function that keeps changing number of arguments (adding, removing, refactoring etc.), how can I call this function in a test with arbitrary arguments? I just want to test that when a dependency returns True, the function itself raises a certain exception. Right now I have something like
dependency.return_value = True
self.assertRaises(Expcetion, function_being_tested, None, None, None, None, None)