예제 #1
0
 def test_bad_configure(self):
     self._tearDown()
     self.eth0 = factory()
     self.eth0.configure({'name':'eth0', 'parent':None})
     if not self.eth0._outstanding_attributes:
         raise 'Failed to detect missing dev.'
     return
예제 #2
0
 def test_bad_configure(self):
     self._tearDown()
     self.eth0 = factory()
     self.eth0.configure({'name': 'eth0', 'parent': None})
     if not self.eth0._outstanding_attributes:
         raise 'Failed to detect missing dev.'
     return
예제 #3
0
 def setUp(self):
     DefaultTestFixture.setUp(self)
     self.eth0 = eth.factory()
     self.eth0.configure({"name": "eth0", "parent": None, "dev": "eth0"})
     self.ip = ip.factory()
     self.ip.configure({"name": "ip", "parent": self.eth0})
     self.server = server.ServerDevice()
     self.server.configure({"name": "server", "parent": self.ip, "address": 255})
     return
예제 #4
0
 def setUp(self):
     DefaultTestFixture.setUp(self)
     self.eth0 = eth.factory()
     self.eth0.configure({'name': 'eth0', 'parent': None, 'dev': 'eth0'})
     self.ip = ip.factory()
     self.ip.configure({'name': 'ip', 'parent': self.eth0})
     self.server = server.ServerDevice()
     self.server.configure({
         'name': 'server',
         'parent': self.ip,
         'address': 255
     })
     return
예제 #5
0
 def setUp(self):
     DefaultTestFixture.setUp(self)
     self.eth0 = eth.factory()
     self.eth0.configure({'name':'eth0', 'parent':None, 'dev':'eth0'})
     self.ip = ip.factory()
     self.ip.configure({'name':'ip', 'parent':self.eth0})
     self.lhs = tcp_ip_server.TcpIpServer()
     self.lhs.configure({'name':'tcpserver', 'parent':self.ip,
                         'port':8502, 'debug':0})
     self.server = server.ServerDevice()
     self.server.configure({'name':'server', 'parent':self.lhs,
                            'address':255, 'debug':0})
     self.lhc = tcp_ip_line_handler.TcpIpClient()
     self.lhc.configure({'name':'tcpclient', 'parent':self.ip,
                         'ip':self.ip.address, 'port':8502, 'debug':0})
     self.client = generic.Device()
     self.client.configure({'name':'client', 'parent':self.lhc,
                            'address':255, 'debug':0})
     return
예제 #6
0
 def setUp(self):
     DefaultTestFixture.setUp(self)
     self.eth0 = factory()
     self.eth0.configure({'name':'eth0', 'parent':None, 'dev':'eth0'})
     return
예제 #7
0
 def setUp(self):
     DefaultTestFixture.setUp(self)
     self.eth0 = factory()
     self.eth0.configure({'name': 'eth0', 'parent': None, 'dev': 'eth0'})
     return