예제 #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"
예제 #2
0
파일: test_util.py 프로젝트: cruxlog/Kotti
 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'
예제 #3
0
파일: test_util.py 프로젝트: Kotti/Kotti
    def test_disambiguate_name(self):
        from kotti.util import disambiguate_name

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