@@ -132,9 +132,7 @@ def tearDownClass(cls):
132132
133133class ExpandTest (unittest .TestCase ):
134134
135- '''
136- assumes the configuration has been imported into a python dict correctly.
137- '''
135+ """Assume configuration has been imported into a python dict correctly."""
138136
139137 before_config = {
140138 'session_name' : 'sampleconfig' ,
@@ -154,23 +152,27 @@ class ExpandTest(unittest.TestCase):
154152 {
155153 'window_name' : 'logging' ,
156154 'panes' : [
157- {'shell_command' : ['tail -F /var/log/syslog' ],
158- }
155+ {
156+ 'shell_command' : ['tail -F /var/log/syslog' ],
157+ }
159158 ]
160159 },
161160 {
162161 'start_directory' : '/var/log' ,
163162 'options' : {'automatic_rename' : True , },
164163 'panes' : [
165- {'shell_command' : 'htop' },
164+ {
165+ 'shell_command' : 'htop'
166+ },
166167 'vim' ,
167168 ]
168169 },
169170 {
170171 'panes' : [
171172 'top'
172173 ]
173- }]
174+ }
175+ ]
174176 }
175177
176178 after_config = {
@@ -267,8 +269,10 @@ class InlineTest(unittest.TestCase):
267269 'window_name' : 'editor' ,
268270 'panes' : [
269271 {
270- 'start_directory' : '~' , 'shell_command' : 'vim' ,
271- }, {
272+ 'start_directory' : '~' ,
273+ 'shell_command' : 'vim' ,
274+ },
275+ {
272276 'shell_command' : 'cowsay "hey"'
273277 },
274278 ],
@@ -277,14 +281,20 @@ class InlineTest(unittest.TestCase):
277281 {
278282 'window_name' : 'logging' ,
279283 'panes' : [
280- {'shell_command' : 'tail -F /var/log/syslog' ,
281- 'start_directory' : '/var/log' }
284+ {
285+ 'shell_command' : 'tail -F /var/log/syslog' ,
286+ 'start_directory' : '/var/log'
287+ }
282288 ]
283289 },
284290 {
285- 'options' : {'automatic_rename' : True , },
291+ 'options' : {
292+ 'automatic_rename' : True ,
293+ },
286294 'panes' : [
287- {'shell_command' : 'htop' }
295+ {
296+ 'shell_command' : 'htop'
297+ }
288298 ]
289299 }
290300 ]
@@ -316,8 +326,10 @@ class InheritanceTest(unittest.TestCase):
316326 'start_directory' : '~' ,
317327 'panes' : [
318328 {
319- 'start_directory' : '~' , 'shell_command' : ['vim' ],
320- }, {
329+ 'start_directory' : '~' ,
330+ 'shell_command' : ['vim' ],
331+ },
332+ {
321333 'shell_command' : ['cowsay "hey"' ]
322334 },
323335 ],
@@ -364,8 +376,10 @@ class InheritanceTest(unittest.TestCase):
364376 {
365377 'window_name' : 'logging' ,
366378 'panes' : [
367- {'shell_command' : ['tail -F /var/log/syslog' ],
368- 'start_directory' :'/var/log' }
379+ {
380+ 'shell_command' : ['tail -F /var/log/syslog' ],
381+ 'start_directory' :'/var/log'
382+ }
369383 ]
370384 },
371385 {
0 commit comments