'Test index page with login at /file/view/<file_id>'

def test_file_view_login(self):

    response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
    self.assertRedirects(response, '/')
    response = self.client.get(reverse('documents_file_view', args=[self.file.id]))
    self.assertEquals(response.status_code, 200)
