def METHOD_NAME(self):
    self.login_as(self.user)
    url = reverse('view_lib_file', args=[self.repo.id, self.file])
    resp = self.client.get(url)
    self.assertEqual(200, resp.status_code)
    self.assertTemplateUsed(resp, 'text_file_view_react.html')
    assert resp.context['filetype'].lower() == 'text'
    assert resp.context['file_content'] == ''
    # assert resp.context['encoding'] == 'utf-8'