Revision 723d068c mininet/test/test_nets.py
mininet/test/test_nets.py | ||
---|---|---|
4 | 4 |
Test creation and all-pairs ping for each included mininet topo type. |
5 | 5 |
''' |
6 | 6 |
|
7 |
from time import sleep |
|
8 | 7 |
import unittest |
9 | 8 |
|
10 | 9 |
from mininet.net import init, Mininet |
... | ... | |
12 | 11 |
from mininet.topo import SingleSwitchTopo, LinearTopo |
13 | 12 |
|
14 | 13 |
# temporary, until user-space side is tested |
15 |
SWITCHES = {'kernel' : KernelSwitch}
|
|
14 |
SWITCHES = {'kernel': KernelSwitch} |
|
16 | 15 |
|
17 | 16 |
|
18 | 17 |
class testSingleSwitch(unittest.TestCase): |
... | ... | |
54 | 53 |
|
55 | 54 |
|
56 | 55 |
if __name__ == '__main__': |
57 |
unittest.main() |
|
56 |
unittest.main() |
Also available in: Unified diff