示例#1
0
 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)
示例#2
0
 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')