def test_deep_copy(self): ref = context.OutputRef('gk_1_1', self.context) ref_copy = deepcopy(ref) self.assertTrue(ref_copy is ref) self.assertTrue(ref_copy.context is ref.context)
def test_value(self): ref = context.OutputRef('gk_1_1', self.context) self.context.extract_output(self.act_1) self.assertEqual(ref.value, 'value_1_1')