comparison tests/test_data_iterators.py @ 233:4379d8f8f831

internal: Removing some dependency of filters and iterators on pages.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 11 Feb 2015 20:36:18 -0800
parents cd35d356ccce
children e35407c60e00
comparison
equal deleted inserted replaced
232:e534d2bc657c 233:4379d8f8f831
44 44
45 45
46 class TestItem(object): 46 class TestItem(object):
47 def __init__(self, value): 47 def __init__(self, value):
48 self.name = str(value) 48 self.name = str(value)
49 self.config = {'foo': value} # `config` makes it look like a `Page`. 49 self.foo = value
50 50
51 def __eq__(self, other): 51 def __eq__(self, other):
52 return other.name == self.name 52 return other.name == self.name
53 53
54 54