def login(self):
    self.client.login(username='test', password='test')
    cookie = self.client.cookies['sessionid']
    self.open_url('/admin/')
    self.selenium.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})
def login(self):
    self.client.login(username='test', password='test')
    cookie = self.client.cookies['sessionid']
    self.open_url('/admin/')
    self.selenium.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})