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/datedetectortestcase.py   Fail2Ban-Old-SVNGIT(Download)
 
import unittest
from server.datedetector import DateDetector
from server.datetemplate import DateTemplate
 
class DateDetectorTest(unittest.TestCase):
 
	def setUp(self):
		"""Call before every test case."""
		self.__datedetector = DateDetector()

src/f/a/fail2ban-HEAD/fail2ban/tests/datedetectortestcase.py   fail2ban(Download)
import datetime
 
from ..server.datedetector import DateDetector
from ..server.datetemplate import DateTemplate
from .utils import setUpMyTime, tearDownMyTime
	def setUp(self):
		"""Call before every test case."""
		setUpMyTime()
		self.__datedetector = DateDetector()
		self.__datedetector.addDefaultTemplate()