I am trying to perform something similar to this:
mymock = Mock()
mymock.variable.side_effect = [1,2,3]
print mymock.variable # Should print 1
print mymock.variable # Should print 2
print mymock.variable # Should print 3
However, I am not getting the desired outcome. What am I missing?