I have a function that carries out some logic based on today's date:
def do_work()
todays_date = datetime.datetime.today().date()
#do something based on todays_date
I want to write some unit tests that verify that this function does what it is supposed to on given days of the year. Is there any way that I can change the value that get's stored in todays_date
without changing the function?
I suspect not, but just thought I'd ask.