@mock.patch('google.auth.transport.requests.AuthorizedSession')
def test__make_transport(self, fake_session_factory):
    client = mock.Mock(spec=[u'_credentials'])
    blob = self._make_one(u'blob-name', bucket=None)
    transport = blob._make_transport(client)
    self.assertIs(transport, fake_session_factory.return_value)
    fake_session_factory.assert_called_once_with(client._credentials)
@mock.patch('google.auth.transport.requests.AuthorizedSession')
def test__make_transport(self, fake_session_factory):
    client = mock.Mock(spec=[u'_credentials'])
    blob = self._make_one(u'blob-name', bucket=None)
    transport = blob._make_transport(client)
    self.assertIs(transport, fake_session_factory.return_value)
    fake_session_factory.assert_called_once_with(client._credentials)