def METHOD_NAME(self):
    self.login_as(self.user)
    file_path = self.create_file(repo_id=self.repo.id, parent_dir='/',
                                 filename="foo.doc", username=self.user.email)
    url = reverse('view_lib_file', args=[self.repo.id, file_path])
    resp = self.client.get(url)
    self.assertEqual(200, resp.status_code)
    self.assertTemplateUsed(resp, 'document_file_view_react.html')