예제 #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)