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