Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_fake_time():
return fake_time
assert not another_module.get_date() is FakeDate
assert another_module.get_time() is time.time
assert not another_module.get_time() is fake_time
assert another_module.get_localtime() is time.localtime
assert not another_module.get_localtime() is fake_localtime
assert another_module.get_gmtime() is time.gmtime
assert not another_module.get_gmtime() is fake_gmtime
assert another_module.get_strftime() is time.strftime
assert not another_module.get_strftime() is fake_strftime
assert another_module.get_timegm() is calendar.timegm
assert not another_module.get_timegm() is fake_timegm
# Fakes
assert another_module.get_fake_datetime() is FakeDatetime
assert another_module.get_fake_date() is FakeDate
assert another_module.get_fake_time() is fake_time
assert another_module.get_fake_localtime() is fake_localtime
assert another_module.get_fake_gmtime() is fake_gmtime
assert another_module.get_fake_strftime() is fake_strftime
assert another_module.get_fake_timegm() is fake_timegm