Beispiel #1
0
    def test_restore_is_working_properly(self):
        """testing if the restore method is working properly
        """
        rfm1 = RecentFileManager()
        rfm1.add('New Env', 'some path')
        rfm1.save()

        rfm2 = RecentFileManager()
        # clear the recent files
        rfm2.recent_files = []
        rfm2.restore()

        self.assertEqual(rfm2.recent_files['New Env'][0], 'some path')
Beispiel #2
0
    def test_restore_is_working_properly(self):
        """testing if the restore method is working properly
        """
        rfm1 = RecentFileManager()
        rfm1.add('New Env', 'some path')
        rfm1.save()

        rfm2 = RecentFileManager()
        # clear the recent files
        rfm2.recent_files = []
        rfm2.restore()

        self.assertEqual(
            rfm2.recent_files['New Env'][0],
            'some path'
        )