Esempio n. 1
0
    def test_search_taks_with_file(self):
        result = fs.search_task(self.data)

        t = result[0]
        #print t
        self.assertEqual(t.offset, 4)

        t = result[1]
        self.assertEqual(t.offset, 6)
Esempio n. 2
0
 def test_search_with_mult_inc_on_file(self):
     result = fs.search_task([os.path.join("test", "top", "de", "f3.txt"), "es", "de"])
     self.assertEqual(len(result), 3)
     self.assertEqual(result[0].offset, 1)
     self.assertEqual(result[1].offset, 1)
Esempio n. 3
0
 def test_search_task_simple(self):
     self.assertEqual(type(fs.search_task(self.data)), type([]))