I have a function as
def getEvents(eid, request):
......
Now I want to write unit test for the above function separately (without calling the view).
So how should I call the above in TestCase
. Is it possible to create request ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…