#NEWLINE# def test_get_stock_codes( self ) : #NEWLINE# #INDENT# sc = self . nse . get_stock_codes ( ) #NEWLINE# self . assertIsNotNone ( sc ) #NEWLINE# self . assertIsInstance ( sc , dict ) #NEWLINE# sc_json = self . nse . get_stock_codes ( as_json = True ) #NEWLINE# self . assertIsInstance ( sc_json , str ) #NEWLINE# six . assertCountEqual ( sc , sc , json . loads ( sc_json ) )