def test_repository(self): facade = Facade(PROFILE_TEST, PROFILE_DIRECTORY) facade.add_file(abspath("data/profiles")) self.assertRaises(KeyError, facade.del_file, abspath("data")) self.assertRaises(ValueError, facade.add_file, abspath("data")) facade.add_file(abspath("data/emptydir")) facade.del_file(abspath("data/emptydir"))