# Path: binstar_client/requests_ext.py
# def encode_multipart_formdata_stream(fields, boundary=None):
#     def body_write(item):
#     def __init__(self, body, callback=None):
#     def read(self, n= -1):
#     def tell(self):
#     def seek(self, pos, mode=0):
# def stream_multipart(data, files=None, callback=None):
#     def __call__(self, r):
# class MultiPartIO(object):
# class NullAuth(requests.auth.AuthBase):


import io
import unittest
from binstar_client import requests_ext
# -*- coding: utf-8 -*-



class TestMultiPart(unittest.TestCase):
    def test_unicode_read(self):
        body = io.BytesIO(u'Unicode™'.encode('utf-8'))

# Path: binstar_client/requests_ext.py
# def encode_multipart_formdata_stream(fields, boundary=None):
#     def body_write(item):
#     def __init__(self, body, callback=None):
#     def read(self, n= -1):
#     def tell(self):
#     def seek(self, pos, mode=0):
# def stream_multipart(data, files=None, callback=None):
#     def __call__(self, r):
# class MultiPartIO(object):
# class NullAuth(requests.auth.AuthBase):


# Path: binstar_client/tests/test_requests_ext.py
import io
import unittest
from binstar_client import requests_ext

# -*- coding: utf-8 -*-



class TestMultiPart(unittest.TestCase):
    def test_unicode_read(self):
        body = io.BytesIO(u'Unicode™'.encode('utf-8'))

        multipart = requests_ext.MultiPartIO([body])