chrome/android/monochrome/scripts/monochrome_apk_checker_test.py
def VerifySameFile(self, monochrome_dict, apk, changes, apk_name):
    """Verify apk file content matches same files in monochrome.

    Verify files from apk are same as those in monochrome except files
    in changes.
    """
    diff = []
    for a in apk:
      # File may not exists due to exists_in_some_form().
      m = monochrome_dict.get(a.filename)
      if m and m.CRC != a.CRC and not changes.match(m.filename):
        diff.append(a.filename)
    self.assertEquals(len(diff), 0,  """\
Unless specifcially excepted, all files in {0} should be exactly the same as
the similarly named file in Monochrome. However these files were present in
both monochrome and {0}, but had different contents:
{1}
""".format(apk_name, '\n'.join(diff)))
Verify apk file content matches same files in monochrome.

    Verify files from apk are same as those in monochrome except files
    in changes.
    
Verify apk file content matches same files in monochrome.
Verify files from apk are same as those in monochrome except files
in changes.
Verify apk file content matches same files in monochrome . Verify files from apk are same as those in monochrome except files in changes .
def VerifySameFile(self, monochrome_dict, apk, changes, apk_name):
    diff = []
    for a in apk:
      m = monochrome_dict.get(a.filename)
      if m and m.CRC != a.CRC and not changes.match(m.filename):
        diff.append(a.filename)
    self.assertEquals(len(diff), 0,  """\
Unless specifcially excepted, all files in {0} should be exactly the same as
the similarly named file in Monochrome. However these files were present in
both monochrome and {0}, but had different contents:
{1}
""".format(apk_name, '\n'.join(diff)))
def VerifySameFile ( self , monochrome_dict , apk , changes , apk_name ) : diff = [ ] for a in apk : m = monochrome_dict . get ( a . filename ) if m and m . CRC != a . CRC and not changes . match ( m . filename ) : diff . append ( a . filename ) self . assertEquals ( len ( diff ) , 0 , """\
Unless specifcially excepted, all files in {0} should be exactly the same as
the similarly named file in Monochrome. However these files were present in
both monochrome and {0}, but had different contents:
{1}
""" . format ( apk_name , '\n' . join ( diff ) ) )
Verify apk file content matches same files in monochrome.
Verify apk file content matches same files in monochrome .
"""Verify apk file content matches same files in monochrome.

    Verify files from apk are same as those in monochrome except files
    in changes.
    """ # File may not exists due to exists_in_some_form().
self
monochrome_dict
apk
changes
apk_name