def test_update11(self): """test update (go back to state STATE_PREPARE after add)""" path = self.fixture_file('prj1_update_state_prepare') ustate = ProjectUpdateState.read_state(path) self.assertEqual(ustate.state, UpdateStateMixin.STATE_PREPARE) # the update itself is similar to test_update5 prj = Project(path) self.assertEqual(prj._status('foo'), '?') prj._perform_adds(ustate) self._exists(path, '.osc', '_transaction') ustate = ProjectUpdateState.read_state(path) self.assertEqual(ustate.state, UpdateStateMixin.STATE_PREPARE) self.assertEqual(ustate.entrystates['foo'], ' ')