def METHOD_NAME(filename):
    """given a filename, create a function which runs an exiv2 test against a reference file"""
    def test_func(self):
        out = BT.Output()
        out += BT.Executer("exiv2 -Pkycvt " + filename)
        BT.reportTest(os.path.basename(filename), out)
    return test_func