def assertResult(self, result, circuit):
picklename = '<STR_LIT>' % (type(self).__name__, circuit.name)<EOL>filename = os.path.join(DIRNAME, picklename)<EOL>if self.regenerate_expected:<EOL><INDENT>self.generate_ground_truth(result, filename)<EOL><DEDENT>with open(filename, "<STR_LIT:rb>") as input_file:<EOL><INDENT>expected = pickle.load(input_file)<EOL><DEDENT>self.assertEqual(result, expected)<EOL>
Fetches the pickle in circuit.name file and compares it with result.