def METHOD_NAME(self, problem, solver):
    refObj = self.getObjective(self.referenceFile(problem, solver))
    ansObj = self.getObjective(os.path.join(currdir, 'result.yml'))
    self.assertEqual(len(refObj), len(ansObj))
    for i in range(len(refObj)):
        self.assertEqual(len(refObj[i]), len(ansObj[i]))
        if isinstance(refObj[i], str):
            continue
        for key, val in refObj[i].items():
            self.assertAlmostEqual(
                val['Value'], ansObj[i].get(key, None)['Value'], places=2
            )