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

All Samples(3)  |  Call(1)  |  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):

src/f/a/fail2ban-HEAD/fail2ban/tests/datedetectortestcase.py   fail2ban(Download)
 
from ..server.datedetector import DateDetector
from ..server.datetemplate import DateTemplate
from .utils import setUpMyTime, tearDownMyTime
 
	def testDateTemplate(self):
			t = DateTemplate()
			t.setRegex('^a{3,5}b?c*$')
			self.assertEqual(t.getRegex(), '^a{3,5}b?c*$')
			self.assertRaises(Exception, t.getDate, '')