def check_file_content(path, expected_content):
 with open(path) as input:
  return (expected_content == input.read())

def check_file_content ( path , expected_content ) : with open ( path ) as input : return ( expected_content == input . read ( ) )
check file has expected content .