Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(1)  |  Import(2)

src/f/a/Fail2Ban-Old-SVNGIT-HEAD/testcases/servertestcase.py   Fail2Ban-Old-SVNGIT(Download)
 
import unittest, socket, time
from server.server import Server
 
class StartStop(unittest.TestCase):
 
	def setUp(self):
		"""Call before every test case."""
		self.__server = Server()
	def setUp(self):
		"""Call before every test case."""
		self.__server = Server()
		self.__server.setLogLevel(0)
		self.__server.start(False)

src/f/a/fail2ban-HEAD/fail2ban/tests/servertestcase.py   fail2ban(Download)
 
from ..server.failregex import Regex, FailRegex, RegexException
from ..server.server import Server
from ..server.jail import Jail
 
class TestServer(Server):
	def setLogLevel(self, *args, **kwargs):
		pass
	def setLogTarget(self, *args, **kwargs):
		pass
	def setUp(self):
		self.server = Server()
		self.server.setLogTarget("/dev/null")
		self.server.setLogLevel("CRITICAL")
		super(TransmitterLogging, self).setUp()