def test_environment_constructors (): instant = Instant.date_time(DateTime(2019, 1, 1, 0, 0, 0), Scale.UTC) objects = [] env: Environment = Environment(instant, objects) assert env is not None assert isinstance(env, Environment)
def test_environment_constructors(): instant = Instant.date_time(DateTime(2019, 1, 1, 0, 0, 0), Scale.UTC) objects = [] assert Environment(instant, objects) is not None
def test_environment_setInstant(): environment = Environment.default() environment.set_instant( Instant.date_time(DateTime(2019, 1, 1, 0, 0, 0), Scale.UTC))
def test_instant_datetime (): assert Instant.date_time(DateTime(2018, 1, 1, 0, 0, 0, 0, 0, 0), Scale.UTC) is not None assert Instant.date_time(datetime.datetime.now(), Scale.UTC)