Ejemplo n.º 1
0
 def test_n_FileDate(self):
     self.assertTrue(Library.FileDate("postran.20170101"))
Ejemplo n.º 2
0
 def test_e_FileDate(self):
     self.assertIsNone(Library.FileDate("aaaaaa"))
Ejemplo n.º 3
0
 def test_e_DIYSearch(self):
     self.assertIsNone(Library.DIYSearch(".*", "aaa"))
     self.assertIsNone(Library.DIYSearch("\d.*", "ccc"))
Ejemplo n.º 4
0
 def test_e_FileName(self):
     self.assertIsNone(Library.FileName("70101223"))
Ejemplo n.º 5
0
 def test_e_key_words_marching(self):
     Configuration.load("./LogSpider/debug.yml")
     self.assertFalse(Library.key_words_marching("xxx"))
Ejemplo n.º 6
0
 def test_n_DIYSearch(self):
     self.assertTrue(Library.DIYSearch("(.*)", "aaa"))
Ejemplo n.º 7
0
 def test_e_get_num(self):
     self.assertIsNone(Library.get_num("xxxx"))
Ejemplo n.º 8
0
 def test_n_key_words_marching(self):
     Configuration.load("./LogSpider/debug.yml")
     self.assertTrue(Library.key_words_marching("Rrn"))
Ejemplo n.º 9
0
 def test_e_message_tail(self):
     self.assertFalse(Library.message_tail("xxxx"))
Ejemplo n.º 10
0
 def test_n_get_num(self):
     self.assertIsInstance(Library.get_num("  234 234 234 234 234"), str)
Ejemplo n.º 11
0
 def test_n_message_tail(self):
     self.assertIsInstance(Library.message_tail(" [xxx]"), str)
Ejemplo n.º 12
0
 def test_e_message_head(self):
     self.assertFalse(Library.message_head("xxxx"))
Ejemplo n.º 13
0
 def test_n_message_head(self):
     self.assertIsInstance(Library.message_head("01: "), str)
Ejemplo n.º 14
0
 def test_e_ID(self):
     self.assertIsNone(Library.ID("xxxx"))
Ejemplo n.º 15
0
 def test_n_ID(self):
     self.assertIsInstance(Library.ID("[32322- (2342)]"), str)