Merge pull request #389 from IlyaSukhanov/misc_test_fixes

Misc test fixes
This commit is contained in:
Steve Pulec 2015-08-03 12:16:06 -04:00
commit 45c7a18502
2 changed files with 3 additions and 2 deletions

View File

@ -5,3 +5,4 @@ sure<1.2.4
coverage
freezegun
flask
boto3

View File

@ -126,13 +126,13 @@ def test_filter_snapshot_by_id():
snapshots1 = conn.get_all_snapshots(snapshot_ids=snap2.id)
snapshots1.should.have.length_of(1)
snapshots1[0].volume_id.should.equal(volume2.id)
snapshots1[0].region.name.should.equal('us-east-1')
snapshots1[0].region.name.should.equal(conn.region.name)
snapshots2 = conn.get_all_snapshots(snapshot_ids=[snap2.id, snap3.id])
snapshots2.should.have.length_of(2)
for s in snapshots2:
s.start_time.should_not.be.none
s.volume_id.should.be.within([volume2.id, volume3.id])
s.region.name.should.equal('us-east-1')
s.region.name.should.equal(conn.region.name)
@mock_ec2
def test_snapshot_attribute():