<s> import requests <EOL> import sys <EOL> from nbviewer . utils import url_path_join <EOL> from ... . tests . base import NBViewerTestCase , FormatHTMLMixin <EOL> class LocalFileDefaultTestCase ( NBViewerTestCase ) : <EOL> @ classmethod <EOL> def get_server_args ( cls ) : <EOL> return [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> def test_url ( self ) : <EOL> url = self . url ( '<STR_LIT>' ) <EOL> r = requests . get ( url ) <EOL> self . assertEqual ( r . status_code , <NUM_LIT:200> ) <EOL> class FormatHTMLLocalFileDefaultTestCase ( LocalFileDefaultTestCase , <EOL> FormatHTMLMixin ) : <EOL> pass <EOL> class LocalFileRelativePathTestCase ( NBViewerTestCase ) : <EOL> @ classmethod <EOL> def get_server_args ( cls ) : <EOL> return [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> def test_url ( self ) : <EOL> url = self . url ( '<STR_LIT>' ) <EOL> r = requests . get ( url ) <EOL> self . assertEqual ( r . status_code , <NUM_LIT:200> ) <EOL> def test_404 ( self ) : <EOL> url = self . url ( '<STR_LIT>' ) <EOL> r = requests . get ( url ) <EOL> self . assertEqual ( r . status_code , <NUM_LIT> ) <EOL> class FormatHTMLLocalFileRelativePathTestCase ( LocalFileRelativePathTestCase , <EOL> FormatHTMLMixin ) : <EOL> pass </s>
