Fix bug with modifying original reservations
This commit is contained in:
parent
e8a18f84ff
commit
46f9430bdd
3 changed files with 15 additions and 7 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue