Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/a/fail2ban-HEAD/fail2ban/tests/dummyjail.py   fail2ban(Download)
from threading import Lock
 
from ..server.actions import Actions
 
class DummyJail(object):
		self.idle = False
		self.database = None
		self.actions = Actions(self)
 
	def __len__(self):

src/f/a/fail2ban-HEAD/fail2ban/tests/actionstestcase.py   fail2ban(Download)
import tempfile
 
from ..server.actions import Actions
from .dummyjail import DummyJail
from .utils import LogCaptureTestCase
	def setUp(self):
		"""Call before every test case."""
		super(ExecuteActions, self).setUp()
		self.__jail = DummyJail()
		self.__actions = Actions(self.__jail)