def _assert_json_reader(self, name): here = os.path.dirname(__file__) path = os.path.join(here, '..', 'fixture', name) actual = json_reader(open(path), None, None, None) expected = [{ 'timestamp': 1319475603759L, 'token': '92f80832-f43b-11e0-a45f-00259035c924', 'is_new': False, 'id': 10000 }, { 'timestamp': 1319475603987L, 'token': '9e28ace0-fe61-11e0-97da-00259006bc9c', 'is_new': True, 'id': 20000 }]
def _assert_json_reader(self, name): here = os.path.dirname(__file__) path = os.path.join(here, '..', 'fixture', name) actual = json_reader(open(path), None, None, None) expected = [ { 'timestamp': 1319475603759L, 'token': '92f80832-f43b-11e0-a45f-00259035c924', 'is_new': False, 'id': 10000 }, { 'timestamp': 1319475603987L, 'token': '9e28ace0-fe61-11e0-97da-00259006bc9c', 'is_new': True, 'id': 20000 } ]
def test_bad_stream(self): list(json_reader(10000, None, None, None))