| 20 | |
| 21 | |
| 22 | class FakeEc2: |
| 23 | def __init__(self, state="running"): |
| 24 | self.state = state |
| 25 | self.started = False |
| 26 | |
| 27 | def describe_instances(self, **_kwargs): |
| 28 | return {"Reservations": [{"Instances": [{"State": {"Name": self.state}}]}]} |
| 29 | |
| 30 | def start_instances(self, **_kwargs): |
| 31 | self.started = True |
| 32 | |
| 33 | |
| 34 | class InvocationDoesNotExist(Exception): |
no outgoing calls