Fix bug with modifying original reservations

This commit is contained in:
Steve Pulec 2013-07-08 22:20:55 -04:00
commit 46f9430bdd
3 changed files with 15 additions and 7 deletions

View file

@ -96,6 +96,10 @@ def test_get_instances_filtering_by_state():
instance_ids = [instance.id for instance in reservations[0].instances]
instance_ids.should.equal([instance2.id])
# get_all_instances should still return all 3
reservations = conn.get_all_instances()
reservations[0].instances.should.have.length_of(3)
conn.get_all_instances.when.called_with(filters={'not-implemented-filter': 'foobar'}).should.throw(NotImplementedError)