@load_test_data
    def test_on_element_multiple_parses(self, json_input):
        self._assertions = ["a", 2, True, {"apple": "fruit"}, ]

        def _on_element(value):
            try:
                expected_value = self._assertions.pop(0)
            except __HOLE__:
                raise AssertionError('not enough asserts')

            self.assertEqual(expected_value, value)


        self._streamer.add_listener('element', _on_element)
        self._streamer.consume(json_input[0:8])
        self._streamer.consume(json_input[8:])
dataset/ETHPy150Open kashifrazzaqui/json-streamer/tests/testbasic.py/ObjectStreamerListenerTests.test_on_element_multiple_parses