Ejemplo n.º 1
0
def test_region_from_string_that_is_none():
    """
    Test region parsing from empty string
    """
    region_name = None

    region = _get_region(region_name)
    region.should.be.none
Ejemplo n.º 2
0
def test_region_from_string_that_is_none():
    """
    Test region parsing from empty string
    """
    region_name = None

    region = _get_region(region_name)
    region.should.be.none
Ejemplo n.º 3
0
def test_region_from_string_that_does_not_exist():
    """
    Test region parsing from string for non-existant region
    """

    region_name = 'foobar'

    region = _get_region(region_name)
    region.should.be.none
Ejemplo n.º 4
0
def test_region_from_string_that_exists():
    """
    Test region parsing from string for existing region
    """

    region_name = 'us-east-1'

    region = _get_region(region_name)
    region.shouldnt.be.none
Ejemplo n.º 5
0
def test_region_from_string_that_does_not_exist():
    """
    Test region parsing from string for non-existant region
    """

    region_name = 'foobar'

    region = _get_region(region_name)
    region.should.be.none
Ejemplo n.º 6
0
def test_region_from_string_that_exists():
    """
    Test region parsing from string for existing region
    """

    region_name = 'us-east-1'

    region = _get_region(region_name)
    region.shouldnt.be.none