def test_datetime_alias(): assert datetime_aliased.now() == datetime_aliased(1980, 1, 1)
def test_calls_other_method(self): assert datetime_aliased(2013, 4, 9) == datetime_aliased.today() self.some_other_func() assert datetime_aliased(2013, 4, 9) == datetime_aliased.today()