def test_need_saving(self):
        self._setup_basic_state()
        self.assertTrue(state.need_saving())

        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)

        self.assertFalse(state.need_saving())
        state['list'] = 'foo2'
        self.assertTrue(state.need_saving())
Reads the NSFG 2006-2010 pregnancy data.
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_need_saving--crossover with--dataset/ETHPy150Open AllenDowney/CompStats/nsfg2.py/ReadFemPreg