Created
March 9, 2019 17:08
-
-
Save NMZivkovic/dc6cbf27658c39fdd55a760915c843c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test(self): | |
m = mock.Mock() | |
assert isinstance(m.field, mock.Mock) | |
assert isinstance(m.field2, mock.Mock) | |
assert isinstance(m(), mock.Mock) | |
assert m.field is not m.field2 is not m() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment