Commit dd3f2af2 authored by Jason Madden's avatar Jason Madden

Add an explicit assertion that the status of an object is no longer a ghost...

Add an explicit assertion that the status of an object is no longer a ghost after accessing _p_mtime...that the value of _p_mtime is set is implicitly confiramtion of this because it gets set during loading, but explicit is better than implicit.
parent b6272dcc
...@@ -569,6 +569,7 @@ class _Persistent_Base(object): ...@@ -569,6 +569,7 @@ class _Persistent_Base(object):
inst._p_invalidate() inst._p_invalidate()
self.assertEqual(inst._p_status, 'ghost') self.assertEqual(inst._p_status, 'ghost')
self.assertEqual(inst._p_mtime, ts.timeTime()) self.assertEqual(inst._p_mtime, ts.timeTime())
self.assertEqual(inst._p_status, 'saved')
def test__p_state_unsaved(self): def test__p_state_unsaved(self):
inst = self._makeOne() inst = self._makeOne()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment