def test_disambiguate_name(self): from kotti.util import disambiguate_name assert disambiguate_name("foo") == "foo-1" assert disambiguate_name("foo-3") == "foo-4"
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'