def test_get_document_file_path(self):
     req = RequestFactory().get(self.get_url() + '?path=/docs/')
     view = OnlineDocsView()
     view.dispatch(req)
     document_name = 'foo_bar.md'
     result = view.get_document_file_path(document_name)
     self.assertEqual(result, os.path.join(
         settings.STATIC_ROOT, 'online_docs', document_name), msg=(
             'Should append the given filename to STATIC_ROOT/online_docs'
             ' but returned %s' % result))