Skip to content Skip to sidebar Skip to footer
Showing posts with the label Magicmock

How Do You Set Different Attributes For Different Magicmock Instances In Python?

I'd like to assert that say_name was called with each value in the list name. from unittest.moc… Read more How Do You Set Different Attributes For Different Magicmock Instances In Python?

Python Mock Default Init Argument Of Class

I want to mock the default argument in a class constructor: class A (object): def __init__(self… Read more Python Mock Default Init Argument Of Class