Hi,
I'm trying to mock methods in my controllers. Need to just assert if that
method is called. Can someone help me with that?
# This is my controller
def do_something():
resp = {"status":"-1","sresp":""}
email = request.vars['email']
status = get_status(email)
if status == 1:
resp['status'] = 1
def get_status(email):
# Some logic here
I need to write a test for do_something controller and need to assert that
get_status is called.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.