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