'Method to login the GeoNode site'

def login(self):

    self.csrf_token = self.get_csrf_token()
    params = {'csrfmiddlewaretoken': self.csrf_token, 'username': self.user, 'next': '/', 'password': self.passwd}
    self.make_request(reverse('account_login'), data=urllib.urlencode(params))
    self.csrf_token = self.get_csrf_token()
