seriesmarker.test.gui.search_dialog_test module

class Search(string, expected_row, expected_count)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

static __new__(_cls, string, expected_row, expected_count)

Create new instance of Search(string, expected_row, expected_count)

__repr__()

Return a nicely formatted representation string

__slots__ = ()
_asdict()

Return a new OrderedDict which maps field names to their values.

_fields = ('string', 'expected_row', 'expected_count')
classmethod _make(iterable, new=<built-in method __new__ of type object>, len=<built-in function len>)

Make a new Search object from a sequence or iterable

_replace(_self, **kwds)

Return a new Search object replacing specified fields with new values

_source = "from builtins import property as _property, tuple as _tuple\nfrom operator import itemgetter as _itemgetter\nfrom collections import OrderedDict\n\nclass Search(tuple):\n 'Search(string, expected_row, expected_count)'\n\n __slots__ = ()\n\n _fields = ('string', 'expected_row', 'expected_count')\n\n def __new__(_cls, string, expected_row, expected_count):\n 'Create new instance of Search(string, expected_row, expected_count)'\n return _tuple.__new__(_cls, (string, expected_row, expected_count))\n\n @classmethod\n def _make(cls, iterable, new=tuple.__new__, len=len):\n 'Make a new Search object from a sequence or iterable'\n result = new(cls, iterable)\n if len(result) != 3:\n raise TypeError('Expected 3 arguments, got %d' % len(result))\n return result\n\n def _replace(_self, **kwds):\n 'Return a new Search object replacing specified fields with new values'\n result = _self._make(map(kwds.pop, ('string', 'expected_row', 'expected_count'), _self))\n if kwds:\n raise ValueError('Got unexpected field names: %r' % list(kwds))\n return result\n\n def __repr__(self):\n 'Return a nicely formatted representation string'\n return self.__class__.__name__ + '(string=%r, expected_row=%r, expected_count=%r)' % self\n\n def _asdict(self):\n 'Return a new OrderedDict which maps field names to their values.'\n return OrderedDict(zip(self._fields, self))\n\n def __getnewargs__(self):\n 'Return self as a plain tuple. Used by copy and pickle.'\n return tuple(self)\n\n string = _property(_itemgetter(0), doc='Alias for field number 0')\n\n expected_row = _property(_itemgetter(1), doc='Alias for field number 1')\n\n expected_count = _property(_itemgetter(2), doc='Alias for field number 2')\n\n"
expected_count

Alias for field number 2

expected_row

Alias for field number 1

string

Alias for field number 0

class SearchDialogTest(methodName='runTest')[source]

Bases: seriesmarker.test.gui.base.gui_test_case.GUITestCase

setUp()[source]
tearDown()[source]
test_accept()[source]
test_reject()[source]
test_search_by_keyhit()[source]
get_suit()[source]