Commit 6ad5c00e by Őry Máté

dashboard: more compact doctest

parent cdf10bc0
...@@ -191,16 +191,13 @@ class FilterMixin(object): ...@@ -191,16 +191,13 @@ class FilterMixin(object):
>>> f = FilterMixin() >>> f = FilterMixin()
>>> o = f._parse_get({'s': "hello"}).items() >>> o = f._parse_get({'s': "hello"}).items()
>>> o.sort() >>> sorted(o) # doctest: +ELLIPSIS
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello'), (...)] [(u'name', u'hello'), (...)]
>>> o = f._parse_get({'s': "name:hello owner:test"}).items() >>> o = f._parse_get({'s': "name:hello owner:test"}).items()
>>> o.sort() >>> sorted(o) # doctest: +ELLIPSIS
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello'), (u'owner', u'test'), (...)] [(u'name', u'hello'), (u'owner', u'test'), (...)]
>>> o = f._parse_get({'s': "name:hello ws node:node 3 oh"}).items() >>> o = f._parse_get({'s': "name:hello ws node:node 3 oh"}).items()
>>> o.sort() >>> sorted(o) # doctest: +ELLIPSIS
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello ws'), (u'node', u'node 3 oh'), (...)] [(u'name', u'hello ws'), (u'node', u'node 3 oh'), (...)]
""" """
s = GET_dict.get("s") s = GET_dict.get("s")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment