示例#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
 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"