old_contents: from sh import cp, rm, diff, ErrorReturnCode
  import sh
  import os
  
  SURSA_VERIFICATA = 'wow-palcu.cpp'
  
  cp('../' + SURSA_VERIFICATA, '.')
  os.system('g++ ' + SURSA_VERIFICATA)
  
  filename = 'grader_test'
  for i in range(1, 11):
    print 'Testul ', i
    cp(filename + str(i) + '.in', 'wow.in')
    os.system('./a.out')
    print diff('wow.out', filename + str(i) + '.ok', _ok_code=[0, 1])
  
  for extension in ['in', 'out']:
    rm('wow.' + extension)
  rm(SURSA_VERIFICATA)
  rm('a.out')
  
new_contents: from sh import cp, rm, diff, ErrorReturnCode
  import sh
  import os
  
  SURSA_VERIFICATA = 'wow-100.cpp'
  
  cp('../' + SURSA_VERIFICATA, '.')
  os.system('g++ ' + SURSA_VERIFICATA)
  
  filename = 'grader_test'
  for i in range(1, 11):
    print 'Testul ', i
    cp(filename + str(i) + '.in', 'wow.in')
    os.system('./a.out')
    print diff('wow.out', filename + str(i) + '.ok', _ok_code=[0, 1])
  
  for extension in ['in', 'out']:
    rm('wow.' + extension)
  rm(SURSA_VERIFICATA)
  rm('a.out')
  
subject: Update verifica_diff