def test_load_without_statefile(self): persistent._setState(None) self.state.statefile = None self.assertRaises(persistent.MissingState, persistent.load)
def test_load_with_None(self): persistent._setState(None) self.assertRaises(persistent.MissingState, persistent.load, None)