'Test index page with login at /documents/weblinks/'

def test_index_weblinks_login(self):

    response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
    self.assertRedirects(response, '/')
    response = self.client.get(reverse('index_weblinks'))
    self.assertEquals(response.status_code, 200)
