def setUp(self): self.test_ipaddr = get_local_ip() self.test_server_port = 9999 # setup once if not self.IsSetup: self.setup_class() self.testthr = None self.__class__.IsSetup = True
def setUp(self): self.test_url = 'http://' + get_local_ip() + ':8080' if not self.IsSetup: self.setup_class() self.testthr = None self.__class__.IsSetup = True
def test_get_local_ip(self): """ test get_local_ip """ self.assertEqual('192.168.1.108', get_local_ip())