def assertFilesAreEqual(self, current, expected):
self.assertTrue(os.path.exists(current))<EOL>self.assertTrue(os.path.exists(expected))<EOL>with open(current, "<STR_LIT:r>", encoding='<STR_LIT>') as cur,open(expected, "<STR_LIT:r>", encoding='<STR_LIT>') as exp:<EOL><INDENT>self.assertEqual(cur.read(), exp.read())<EOL><DEDENT>
Checks if both file are the same.