Esempio n. 1
0
    def test_simple(self):
        fp = self._make_fp(
            """
            [versions]
            isotoma.recipe.django = 3.1.5
            Django = 1.4.5
        """
        )

        v = Versions.from_cfg_fp(fp)
        self.assertEqual(len(v), 2)
        self.assertTrue("isotoma.recipe.django==3.1.5" in v)
        self.assertTrue("Django==1.4.5" in v)
Esempio n. 2
0
    def test_custom_name(self):
        fp = self._make_fp(
            """
            [buildout]
            versions = loldongs

            [loldongs]
            isotoma.recipe.apache = 1.0.3
            missingbits = 0.0.16
        """
        )
        v = Versions.from_cfg_fp(fp)
        self.assertEqual(len(v), 2)
        self.assertTrue("isotoma.recipe.apache==1.0.3" in v)
        self.assertTrue("missingbits==0.0.16" in v)