Example #1
0
    def no_test_write_profile_default_naming(self):
        self.setUp()
        folder_path = path.join(path.dirname(path.abspath(__file__)),
                                'resources', 'profile', 'folder')

        profile=Profile("New profile")
        profile.path=self.conf.get_free_profile()
        self.conf.add_profile(profile)
        self.conf.update_profiles()
        path.isfile(path.join(folder_path,"profile1.ini"))
        os.remove(path.join(folder_path,"profile1.ini"))
Example #2
0
    def test_write_profile_default_naming(self):
        self.setUp()
        folder_path = path.join(path.dirname(path.abspath(__file__)),
                                'resources', 'profile', 'folder')

        profile=Profile("New profile")
        profile.path=self.conf.get_free_profile()
        self.conf.add_profile(profile)
        self.conf.update_profiles()
        path.isfile(path.join(folder_path,"profile1.ini"))
        os.remove(path.join(folder_path,"profile1.ini"))
Example #3
0
    def no_test_delete_profile(self):
        self.setUp()
        folder_path = path.join(path.dirname(path.abspath(__file__)),
                                'resources', 'profile', 'folder')

        profile=Profile("New")
        profile.path=self.conf.get_free_profile()
        self.conf.add_profile(profile)
        self.conf.update_profiles()
        profile.to_delete = True
        self.conf.update_profiles()
        self.assertEqual(path.isfile(path.join(folder_path,"profile1.ini")),False)
        #os.remove(path.join(folder_path,"profile1.ini"))
        return True
Example #4
0
    def test_delete_profile(self):
        self.setUp()
        folder_path = path.join(path.dirname(path.abspath(__file__)),
                                'resources', 'profile', 'folder')

        profile=Profile("New")
        profile.path=self.conf.get_free_profile()
        self.conf.add_profile(profile)
        self.conf.update_profiles()
        profile.to_delete = True
        self.conf.update_profiles()
        self.assertEqual(path.isfile(path.join(folder_path,"profile1.ini")),False)
        #os.remove(path.join(folder_path,"profile1.ini"))
        return True