Skip to content

Commit da3d974

Browse files
committed
Add test for #9.
1 parent b719ffb commit da3d974

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test_nginxfmt.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,24 @@ def test_issue_16(self):
327327
" deny all;\n"
328328
"}\n")
329329

330+
def test_issue_9(self):
331+
self.check_formatting(
332+
(
333+
"""http {\n"""
334+
""" log_format le_json '{"time":"$time_iso8601", '\n"""
335+
""" '"client_agent":"$client_agent",\n"""
336+
""" '"user_agent":"$http_user_agent"}';\n"""
337+
"""}\n"""
338+
),
339+
(
340+
"""http {\n"""
341+
""" log_format le_json '{"time":"$time_iso8601", '\n"""
342+
""" '"client_agent":"$client_agent",\n"""
343+
""" '"user_agent":"$http_user_agent"}';\n"""
344+
"""}\n"""
345+
),
346+
)
347+
330348

331349
if __name__ == '__main__':
332350
unittest.main()

0 commit comments

Comments
 (0)