def test_deactivate_active_state(self, state): metadata = Metadata() metadata.activate(state.context) metadata.activate(state) assert state in metadata.active_states metadata.deactivate(state) assert state not in metadata.active_states
def test_is_active_inactive_state(self, state): metadata = Metadata() metadata.activate(state.context) assert metadata.is_active(state) is False
def test_activate_inactive_state(self, state): metadata = Metadata() metadata.activate(state.context) metadata.activate(state) assert state in metadata.active_states
def test_create_metadata(self): Metadata()