示例#1
0
文件: parsing.py 项目: ofosos/logload
 def test_string(self):
     logload.tokenize("\"foobar\"")
示例#2
0
文件: parsing.py 项目: ofosos/logload
 def test_nested_group2(self):
     logload.parse(logload.tokenize('( "foo", [ "bar", "baz" ] )'))
示例#3
0
文件: parsing.py 项目: ofosos/logload
 def test_name(self):
     logload.tokenize("foobar")
示例#4
0
文件: parsing.py 项目: ofosos/logload
 def test_simple_group(self):
     logload.parse(logload.tokenize("[ \"foobar\", randword, timestamp ]"))
示例#5
0
文件: parsing.py 项目: ofosos/logload
 def test_nested_group1(self):
     logload.parse(logload.tokenize('( [ "bar", "baz" ] )'))
示例#6
0
文件: parsing.py 项目: ofosos/logload
 def test_empty_group(self):
     logload.parse(logload.tokenize('[ ]'))
示例#7
0
文件: parsing.py 项目: ofosos/logload
 def test_nonexisting_function(self):
     with self.assertRaises(NoParseError):
         logload.parse(logload.tokenize('"foobar", blorp'))
示例#8
0
文件: parsing.py 项目: ofosos/logload
 def test_empty_list(self):
     logload.parse(logload.tokenize("( )"))
示例#9
0
文件: parsing.py 项目: ofosos/logload
 def test_list_string(self):
     logload.parse(logload.tokenize("( \"foobar\" )"))
示例#10
0
文件: parsing.py 项目: ofosos/logload
 def test_empty(self):
     with self.assertRaises(NoParseError):
         logload.parse(logload.tokenize(""))
示例#11
0
文件: parsing.py 项目: ofosos/logload
 def test_empty(self):
     logload.tokenize("")
示例#12
0
文件: parsing.py 项目: ofosos/logload
 def test_nested_group(self):
     logload.tokenize('( "foo" [ "bar", "baz" ] )')
示例#13
0
文件: parsing.py 项目: ofosos/logload
 def test_list(self):
     logload.tokenize("( \"foo\", glorg )")
示例#14
0
文件: parsing.py 项目: ofosos/logload
 def test_group(self):
     logload.tokenize("[ \"foo\", \"bar\" ]")