def test_session_region_env(): session = Session() assert session.get_region() is None os.environ['AWS_REGION'] = 'us-least-7' session.set_region() assert session.region_name == 'us-least-7' assert session.get_region() == 'us-least-7' os.environ.pop('AWS_REGION')
def test_get_region(): session = Session() session.set_region(region_name='us-least-6') assert session.region_name == 'us-least-6' assert session.get_region() == 'us-least-6'
def test_set_region(): session = Session() session.set_region('us-least-8') assert session.region_name == 'us-least-8'