def test_voter_get_requests_redirected_to_index(self):
        self.client.logout()
        self.client.login(username='user0', password='voter')

        response = self.client.get(reverse('results-export'), follow=True)
        self.assertRedirects(response, reverse('index'))
def split_container(container, iter):
	root = Tree(container)
	if iter != 0:
		sr = random_split(container)
		if sr!=None:
			root.lchild = split_container(sr[0], iter-1)
			root.rchild = split_container(sr[1], iter-1)
	return root