def METHOD_NAME(self):
    # Skip this test if running below Splunk 6.2, cookie-auth didn't exist before
    splver = self.service.splunk_version
    if splver[:2] < (6, 2):
        self.skipTest("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver)
    event_count = int(self.service.indexes[self.index_name]['totalEventCount'])
    cookie = "%s=%s" % (list(self.service.http._cookies.items())[0])
    service = client.Service(**{"cookie": cookie})
    service.login()
    cn = service.indexes[self.index_name].attach()
    cn.send(b"Hello Boris!\r\n")
    cn.close()
    self.assertEventuallyTrue(lambda: self.totalEventCount() == event_count+1, timeout=60)