def _hasPotteryCompatibleSetup(cls, branch):
        """Does `branch` look as if pottery can generate templates for it?

        :param branch: A `Branch` object.
        """
        bzr_branch = removeSecurityProxy(branch).getBzrBranch()
        return is_intltool_structure(bzr_branch.basis_tree())
Beispiel #2
0
    def _hasPotteryCompatibleSetup(cls, branch):
        """Does `branch` look as if pottery can generate templates for it?

        :param branch: A `Branch` object.
        """
        bzr_branch = removeSecurityProxy(branch).getBzrBranch()
        return is_intltool_structure(bzr_branch.basis_tree())
Beispiel #3
0
 def test_detect_intltool_structure_module(self):
     # Detect an intltool structure in subdirectories.
     self.prepare_package("intltool_POTFILES_in_2")
     tree = self.prepare_tree()
     self.assertTrue(is_intltool_structure(tree))
Beispiel #4
0
 def test_detect_no_intltool_structure(self):
     # If no POTFILES.in exists, no intltool structure is assumed.
     self.prepare_package("intltool_POTFILES_in_1")
     os.remove("./po-intltool/POTFILES.in")
     tree = self.prepare_tree()
     self.assertFalse(is_intltool_structure(tree))
Beispiel #5
0
 def test_detect_intltool_structure(self):
     # Detect a simple intltool structure.
     self.prepare_package("intltool_POTFILES_in_1")
     tree = self.prepare_tree()
     self.assertTrue(is_intltool_structure(tree))
 def test_detect_intltool_structure_module(self):
     # Detect an intltool structure in subdirectories.
     self.prepare_package("intltool_POTFILES_in_2")
     tree = self.prepare_tree()
     self.assertTrue(is_intltool_structure(tree))
 def test_detect_no_intltool_structure(self):
     # If no POTFILES.in exists, no intltool structure is assumed.
     self.prepare_package("intltool_POTFILES_in_1")
     os.remove("./po-intltool/POTFILES.in")
     tree = self.prepare_tree()
     self.assertFalse(is_intltool_structure(tree))
 def test_detect_intltool_structure(self):
     # Detect a simple intltool structure.
     self.prepare_package("intltool_POTFILES_in_1")
     tree = self.prepare_tree()
     self.assertTrue(is_intltool_structure(tree))