'Not a multipart upload.'

def test_resumable_media_good_upload(self):

    self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
    zoo = build('zoo', 'v1', http=self.http)
    media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
    request = zoo.animals().insert(media_body=media_upload, body=None)
    self.assertEquals(media_upload, request.resumable)
    self.assertEquals('image/png', request.resumable.mimetype())
    self.assertEquals(request.body, None)
    self.assertEquals(request.resumable_uri, None)
    http = HttpMockSequence([({'status': '200', 'location': 'http://upload.example.com'}, ''), ({'status': '308', 'location': 'http://upload.example.com/2', 'range': '0-12'}, ''), ({'status': '308', 'location': 'http://upload.example.com/3', 'range': ('0-%d' % (media_upload.size() - 2))}, ''), ({'status': '200'}, '{"foo":    "bar"}')])
    (status, body) = request.next_chunk(http=http)
    self.assertEquals(None, body)
    self.assertTrue(isinstance(status, MediaUploadProgress))
    self.assertEquals(13, status.resumable_progress)
    self.assertEquals(request.resumable_uri, 'http://upload.example.com/2')
    self.assertEquals(media_upload, request.resumable)
    self.assertEquals(13, request.resumable_progress)
    (status, body) = request.next_chunk(http=http)
    self.assertEquals(request.resumable_uri, 'http://upload.example.com/3')
    self.assertEquals((media_upload.size() - 1), request.resumable_progress)
    self.assertEquals(request.body, None)
    (status, body) = request.next_chunk(http=http)
    self.assertEquals(body, {'foo': 'bar'})
    self.assertEquals(status, None)
