Пример #1
0
 def test_string(self):
     logload.tokenize("\"foobar\"")
Пример #2
0
 def test_nested_group2(self):
     logload.parse(logload.tokenize('( "foo", [ "bar", "baz" ] )'))
Пример #3
0
 def test_name(self):
     logload.tokenize("foobar")
Пример #4
0
 def test_simple_group(self):
     logload.parse(logload.tokenize("[ \"foobar\", randword, timestamp ]"))
Пример #5
0
 def test_nested_group1(self):
     logload.parse(logload.tokenize('( [ "bar", "baz" ] )'))
Пример #6
0
 def test_empty_group(self):
     logload.parse(logload.tokenize('[ ]'))
Пример #7
0
 def test_nonexisting_function(self):
     with self.assertRaises(NoParseError):
         logload.parse(logload.tokenize('"foobar", blorp'))
Пример #8
0
 def test_empty_list(self):
     logload.parse(logload.tokenize("( )"))
Пример #9
0
 def test_list_string(self):
     logload.parse(logload.tokenize("( \"foobar\" )"))
Пример #10
0
 def test_empty(self):
     with self.assertRaises(NoParseError):
         logload.parse(logload.tokenize(""))
Пример #11
0
 def test_empty(self):
     logload.tokenize("")
Пример #12
0
 def test_nested_group(self):
     logload.tokenize('( "foo" [ "bar", "baz" ] )')
Пример #13
0
 def test_list(self):
     logload.tokenize("( \"foo\", glorg )")
Пример #14
0
 def test_group(self):
     logload.tokenize("[ \"foo\", \"bar\" ]")