Skip to content

Instantly share code, notes, and snippets.

@oiuww09fn
Created September 25, 2014 10:27
Show Gist options
  • Save oiuww09fn/81788f8e1a3d58a58265 to your computer and use it in GitHub Desktop.
Save oiuww09fn/81788f8e1a3d58a58265 to your computer and use it in GitHub Desktop.
<% had_seen = [] %>
% for i in data:
<%
if i["method"] in had_seen:
continue
else:
had_seen.append(i["method"])
%>Valid ${i["method"]}
[Documentation]
%for j in i["cmd"]:
<%
import re
tmp = j.split()
for k, v in enumerate(tmp):
if "<" in v:
tmp[k] = " ".join([v.strip("<>"), v])
j = " ".join(tmp)
tmp = " ".join(["...", "- %s" % j])
%>${tmp}
%endfor
[Tags] ${i["method"]} Valid
Log TODO
Invalid ${i["method"]}
[Documentation]
%for j in i["cmd"]:
<%
import re
tmp = j.split()
for k, v in enumerate(tmp):
if "<" in v:
tmp[k] = " ".join([v.strip("<>"), v])
j = " ".join(tmp)
tmp = " ".join(["...", "- %s" % j])
%>${tmp}
%endfor
[Tags] ${i["method"]} Invalid
Log TODO
% endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment