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-Old-SVNGIT-HEAD/testcases/banmanagertestcase.py   Fail2Ban-Old-SVNGIT(Download)
 
import unittest
from server.banmanager import BanManager
from server.ticket import BanTicket
 
	def setUp(self):
		"""Call before every test case."""
		self.__ticket = BanTicket('193.168.0.128', 1167605999.0)
		self.__banManager = BanManager()
		self.assertTrue(self.__banManager.addBanTicket(self.__ticket))

src/f/a/fail2ban-HEAD/fail2ban/tests/banmanagertestcase.py   fail2ban(Download)
import unittest
 
from ..server.banmanager import BanManager
from ..server.ticket import BanTicket
 
	def setUp(self):
		"""Call before every test case."""
		self.__ticket = BanTicket('193.168.0.128', 1167605999.0)
		self.__banManager = BanManager()
		self.assertTrue(self.__banManager.addBanTicket(self.__ticket))