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_accessCelestialObjectWithName():

    environment = Environment.default()

    assert environment.access_celestial_object_with_name('Earth') is not None
def test_environment_accessObjects():

    environment = Environment.default()

    assert environment.access_objects() is not None
def test_environment_intersects():

    environment = Environment.default()

    assert environment.intersects() is not None
def test_environment_hasObjectWithName():

    environment = Environment.default()

    assert environment.has_object_with_name('Earth') is not None
def test_environment_isDefined():

    environment = Environment.default()

    assert environment.is_defined() is not None
def test_environment_default():

    assert Environment.default() is not None
def test_environment_undefined():

    assert Environment.undefined() is not None
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_environment_getObjectNames():

    environment = Environment.default()

    assert environment.get_object_names() is not None
def test_environment_getInstant():

    environment = Environment.default()

    assert environment.get_instant() is not None
def test_environment_undefined ():

    assert Environment.undefined() is not None
    assert Environment.undefined().is_defined() is False