fixed shebangs in non executable .py files
[nepi.git] / test / lib / mock / execute.py
1 # -*- coding: utf-8 -*-
2
3 from constants import TESTBED_ID, TESTBED_VERSION
4 from nepi.core import testbed_impl
5
6 class TestbedController(testbed_impl.TestbedController):
7     def __init__(self):
8         super(TestbedController, self).__init__(TESTBED_ID, TESTBED_VERSION)
9
10     def do_configure(self):
11         pass
12
13     def action(self, time, guid, action):
14         raise NotImplementedError
15
16     def trace(self, guid, trace_id, attribute='value'):
17         if attribute == 'value':
18             return """PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
19
20 --- 10.0.0.2 ping statistics ---
21 1 packets transmitted, 1 received, 0% packet loss, time 0ms
22 """
23         elif attribute == 'path':
24             return '<test>'
25         else:
26             return None
27
28     def shutdown(self):
29             pass
30