You can also, instead of typing out the attributes one by one, you can actually pass in a module to the
spec parameter directly. Let me show you what that looks like. Clear the screen, and this time I am in the directory in which we have
my_calendar.py, so I do have access to that module.
Let me try that again. Okay. So now we’ve set the
spec to the module
my_calendar, so if we look at the
calendar again, we will see some more built-in functions and all the
Mock object functions and then
And we also see
requests because we had imported that in the
my_calendar module. Clear the screen. And I’ll just remind you that this is what we typed in. We’ve set the
spec as the
my_calendar module, so if we try to say
Become a Member to join the conversation.