add tests for python config parser
This commit is contained in:
parent
2113a22f11
commit
6354ef4cee
1 changed files with 13 additions and 0 deletions
|
|
@ -124,3 +124,16 @@ def ac(which=0):
|
|||
opts = p('macos_hide_titlebar y' if is_macos else 'x11_hide_window_decorations y')
|
||||
self.assertTrue(opts.hide_window_decorations)
|
||||
self.ae(len(self.error_messages), 1)
|
||||
|
||||
# line breaks
|
||||
opts = p(" font",
|
||||
" \t \t \\_size",
|
||||
" \\ 12",
|
||||
"\\.35",
|
||||
"col",
|
||||
"\\o",
|
||||
"\t \t\\r",
|
||||
"\\25",
|
||||
" \\ blue")
|
||||
self.ae(opts.font_size, 12.35)
|
||||
self.ae(opts.color25, Color(0, 0, 255))
|
||||
|
|
|
|||
Loading…
Reference in a new issue