Beispiel #1
0
    def test_to_stream(self, commands):
        handle = StringIO()

        expected = deepcopy([command.raw for command in commands])

        BulkAPI.to_stream(handle, commands)

        assert self._decode_ndjson(handle.getvalue()) == expected
Beispiel #2
0
    def test_to_stream(self, commands):
        handle = StringIO()

        BulkAPI.to_stream(handle, commands)

        self._assert_nd_json_matches_commands(handle.getvalue(), commands)