Exemple #1
0
    def test_disambiguate_name(self):
        from kotti.util import disambiguate_name

        assert disambiguate_name("foo") == "foo-1"
        assert disambiguate_name("foo-3") == "foo-4"
Exemple #2
0
 def test_disambiguate_name(self):
     from kotti.util import disambiguate_name
     assert disambiguate_name(u'foo') == u'foo-1'
     assert disambiguate_name(u'foo-3') == u'foo-4'
Exemple #3
0
    def test_disambiguate_name(self):
        from kotti.util import disambiguate_name

        assert disambiguate_name("foo") == "foo-1"
        assert disambiguate_name("foo-3") == "foo-4"