In python, is it possible to check if there are any and how many side effects are remaining?
For example:
mocked_foo = patch.object(Foo, 'method', side_effects=[1, 2, 3])
In python, is it possible to check if there are any and how many side effects are remaining?
For example:
mocked_foo = patch.object(Foo, 'method', side_effects=[1, 2, 3])
This reads the number of digits in the variable.
n=int(input(mocked_foo))
count=0
while(n>0):
count=count+1
n=n//10
print("The number of side effects left are:",count)