예제 #1
0
 def test_existing_id(self):
     self.assertEqual(create_uniqe_id("Foo", ["foo"]), "foo-1")
     self.assertEqual(create_uniqe_id("Foo", ["foo", "foo-1"]), "foo-2")
예제 #2
0
 def test_spaces(self):
     self.assertEqual(create_uniqe_id("Foo bar", []), "foo-bar")
예제 #3
0
 def test_first_id(self):
     self.assertEqual(create_uniqe_id("Foo", []), "foo")