Add assertFileExists() to simply tests that want to check that a file
exists.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
#
import base64
+import os
import zlib
import unittest
d.tearDownDecorator()
self.tearDownMethod()
+ def assertFileExists(self, filename, msg=None):
+ """
+ Test that filename exists. If it does not, the test will fail.
+ """
+ if not os.path.exists(filename):
+ self.fail(msg or "%s does not exist" % filename)
+
class OEPTestResultTestCase:
"""
Mix-in class to provide functions to make interacting with extraresults for