Exemplo n.º 1
0
 def test_find_run_parts_dir_finds_runparts_directory(self):
     self.enableRunParts()
     ubuntu = getUtility(ILaunchpadCelebrities).ubuntu
     self.assertEqual(
         os.path.join(config.root, self.parts_directory,
                      "ubuntu", "finalize.d"),
         find_run_parts_dir(ubuntu, "finalize.d"))
 def test_find_run_parts_dir_finds_runparts_directory(self):
     self.enableRunParts()
     ubuntu = getUtility(ILaunchpadCelebrities).ubuntu
     self.assertEqual(
         os.path.join(
             config.root, self.parts_directory, "ubuntu", "finalize.d"),
         find_run_parts_dir(ubuntu, "finalize.d"))
Exemplo n.º 3
0
 def test_find_run_parts_dir_ignores_nonexistent_directory(self):
     self.enableRunParts()
     distro = self.factory.makeDistribution()
     self.assertIs(None, find_run_parts_dir(distro, "finalize.d"))
Exemplo n.º 4
0
 def test_find_run_parts_dir_ignores_none_config(self):
     self.enableRunParts("none")
     ubuntu = getUtility(ILaunchpadCelebrities).ubuntu
     self.assertIs(None, find_run_parts_dir(ubuntu, "finalize.d"))
 def test_find_run_parts_dir_ignores_nonexistent_directory(self):
     self.enableRunParts()
     distro = self.factory.makeDistribution()
     self.assertIs(None, find_run_parts_dir(distro, "finalize.d"))
 def test_find_run_parts_dir_ignores_none_config(self):
     self.enableRunParts("none")
     ubuntu = getUtility(ILaunchpadCelebrities).ubuntu
     self.assertIs(None, find_run_parts_dir(ubuntu, "finalize.d"))