#NEWLINE# def test_task_completed( ) : #NEWLINE# #INDENT# ( returncode , stdout , stderr ) = exec_command ( [ 'dcos' , 'task' , '--completed' , '--json' ] ) #NEWLINE# assert ( returncode == 0 ) #NEWLINE# assert ( stderr == b'' ) #NEWLINE# assert ( len ( json . loads ( stdout . decode ( 'utf-8' ) ) ) > NUM_TASKS ) #NEWLINE# ( returncode , stdout , stderr ) = exec_command ( [ 'dcos' , 'task' , '--json' ] ) #NEWLINE# assert ( returncode == 0 ) #NEWLINE# assert ( stderr == b'' ) #NEWLINE# assert ( len ( json . loads ( stdout . decode ( 'utf-8' ) ) ) == NUM_TASKS )