示例#1
0
 def test_repr(self):
     string = factory.make_string()
     safe = Safe(string)
     self.assertEqual("<Safe %r>" % string, repr(safe))
示例#2
0
 def test_value(self):
     something = object()
     safe = Safe(something)
     self.assertIs(something, safe.value)