示例#1
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_getRegions(aws_credentials):
    ec2 = EC2()
    regions = ec2.getRegions()
    assert "eu-west-1" in regions
示例#2
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_getNoMatchingInstances(aws_credentials):
    iids = None
    ec2 = EC2()
    insts = ec2.getMatchingInstances(iids)
    assert len(insts) == 0
示例#3
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_getMatchingInstances(aws_credentials):
    iids = ["i-33333333333333333", "i-44444444444444444"]
    ec2 = EC2()
    insts = ec2.getMatchingInstances(iids)
    assert len(insts) == 0
示例#4
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_findNonExistantInstance(aws_credentials):
    iids = ["i-33333333333333333", "i-44444444444444444"]
    ec2 = EC2()
    insts = ec2.findInstances(iids)
    assert len(insts) == 0
示例#5
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_findExistingInstance(aws_credentials):
    iids = ["i-33333333333333333"]
    ec2 = EC2()
    insts = ec2.findInstances(iids)
    assert len(insts) == 0
示例#6
0
文件: test_ec2.py 项目: ccdale/ccaaws
def test_findNoneExistingInstance(aws_credentials):
    iid = None
    ec2 = EC2()
    insts = ec2.findInstances([iid])
    assert len(insts) == 0