def test_getRegions(aws_credentials): ec2 = EC2() regions = ec2.getRegions() assert "eu-west-1" in regions
def test_getNoMatchingInstances(aws_credentials): iids = None ec2 = EC2() insts = ec2.getMatchingInstances(iids) assert len(insts) == 0
def test_getMatchingInstances(aws_credentials): iids = ["i-33333333333333333", "i-44444444444444444"] ec2 = EC2() insts = ec2.getMatchingInstances(iids) assert len(insts) == 0
def test_findNonExistantInstance(aws_credentials): iids = ["i-33333333333333333", "i-44444444444444444"] ec2 = EC2() insts = ec2.findInstances(iids) assert len(insts) == 0
def test_findExistingInstance(aws_credentials): iids = ["i-33333333333333333"] ec2 = EC2() insts = ec2.findInstances(iids) assert len(insts) == 0
def test_findNoneExistingInstance(aws_credentials): iid = None ec2 = EC2() insts = ec2.findInstances([iid]) assert len(insts) == 0