Commit 9a6fa0e9 by Kálmán Viktor

dashboard: fix filtermixin doctest

parent 221785a7
...@@ -190,12 +190,13 @@ class FilterMixin(object): ...@@ -190,12 +190,13 @@ class FilterMixin(object):
The final dict looks like this: {'name': xy, 'node':1} The final dict looks like this: {'name': xy, 'node':1}
>>> f = FilterMixin() >>> f = FilterMixin()
>>> f._parse_get({'s': "hello"}) >>> f._parse_get({'s': "hello"}) # doctest: +ELLIPSIS
{u'name': u'hello', s': '...'} {u's': u'...', u'name': u'hello'}
>>> f._parse_get({'s': "name:hello owner:test"}) >>> f._parse_get({'s': "name:hello owner:test"}) # doctest: +ELLIPSIS
{u'owner': u'test', u'name': u'hello', 's': '...'} {u'owner': u'test', u's': u'...', u'name': u'hello'}
>>> f._parse_get({'s': "name:hello with whitespace node:node 3 oh"}) >>> f._parse_get({'s': "name:hello whitespace node:node 3 oh"})
{u'node': u'node 3 oh', u'name': u'hello with whitespace', 's': '...'} ... # doctest: +ELLIPSIS
{u'node': u'node 3 oh', u's': u'...', u'name': u'hello whitespace'}
""" """
s = GET_dict.get("s") s = GET_dict.get("s")
fake = GET_dict.copy() fake = GET_dict.copy()
......
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