#NEWLINE# def test_dump_data_base( self ) : #NEWLINE# #INDENT# '\n        Testing the case of dump full and empty dataset\n        ' #NEWLINE# fileobj = self . create_filer_file ( ) #NEWLINE# ( jdata , jdata2 ) = ( StringIO ( ) , StringIO ( ) ) #NEWLINE# call_command ( 'dumpdata' , 'filer' , stdout = jdata ) #NEWLINE# fileobj . delete ( ) #NEWLINE# call_command ( 'dumpdata' , 'filer' , stdout = jdata2 ) #NEWLINE# data = json . loads ( jdata . getvalue ( ) ) #NEWLINE# data2 = json . loads ( jdata2 . getvalue ( ) ) #NEWLINE# self . assertEqual ( len ( data ) , 1 ) #NEWLINE# self . assertEqual ( len ( data2 ) , 0 )