Ejemplo n.º 1
0
 def test_name(self):
     name = 'a name'
     ref = Ref(name=name)
     self.assertEqual(ref.name, name)
     with self.assertRaises(AttributeError):
         ref.name = None
Ejemplo n.º 2
0
 def test_name(self):
     name = "a name"
     ref = Ref(name=name)
     assert ref.name == name
     with self.assertRaises(AttributeError):
         ref.name = None