Beispiel #1
0
import unittest
import time
from reader import docket_processor

t = docket_processor()
'''
t.search_dir([], ['Kowal'])
t.write_individual_matches("test%")

try:
    t.write_individual_matches("test%")
except:
    print "Error Good"

time.sleep(10)

t = docket_processor()
t.search_dir(['Kowal'],[])
t.write_individual_matches("test", True)

#t.write_all_matches("test", True)
'''

#Test search_text for taking strings
str_test = t.search_text(["this is a string"], "string")
print type(str_test.text)
'''
#Test search_text for matching required
t_req = t.search_text("this is true for required", ["true"])
print t_req
if t_req:
 def setUp(self):
     self.p = docket_processor()
     self.path = './results/parsed_dockets/'
import unittest
import time
from reader import docket_processor

t = docket_processor()
'''
t.search_dir([], ['Kowal'])
t.write_individual_matches("test%")

try:
    t.write_individual_matches("test%")
except:
    print "Error Good"

time.sleep(10)

t = docket_processor()
t.search_dir(['Kowal'],[])
t.write_individual_matches("test", True)

#t.write_all_matches("test", True)
'''

#Test search_text for taking strings
str_test = t.search_text(["this is a string"], "string")
print type(str_test.text)


'''
#Test search_text for matching required
t_req = t.search_text("this is true for required", ["true"])
 def setUp(self):
     self.p = docket_processor()
     self.path = './results/parsed_dockets/'