<s> import platform <EOL> from . import TestCase <EOL> from JsonStats . FetchStats import Fetcher <EOL> class TestFetcher ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . fetcher = Fetcher ( ) <EOL> def test_dump ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( NotImplementedError , self . fetcher . dump ) <EOL> def test__exec ( self ) : <EOL> """<STR_LIT>""" <EOL> if platform . system ( ) . lower ( ) == '<STR_LIT>' : <EOL> assert self . fetcher . _exec ( '<STR_LIT>' ) <EOL> else : <EOL> assert self . fetcher . _exec ( '<STR_LIT>' ) <EOL> assert '<STR_LIT>' == self . fetcher . _exec ( '<STR_LIT>' ) <EOL> def test_dump_json ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( NotImplementedError , self . fetcher . dump_json ) <EOL> def test__load_data ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( NotImplementedError , self . fetcher . _load_data ) <EOL> def test__loaded_true ( self ) : <EOL> """<STR_LIT>""" <EOL> self . fetcher . _loaded ( True ) <EOL> self . assertTrue ( self . fetcher . _state ) <EOL> def test__loaded_false ( self ) : <EOL> """<STR_LIT>""" <EOL> self . fetcher . _loaded ( False , msg = '<STR_LIT>' ) <EOL> self . assertFalse ( self . fetcher . _state ) </s>
