def test_empty(self): self.assertEqual(unique_name('', []), '')
def test_dupe_two(self): self.assertEqual(unique_name('bar', [ 'bar', 'baz', 'bar-1', ]), 'bar-2')
def test_dupe_three(self): self.assertEqual(unique_name('bar-2', [ 'bar', 'baz', 'bar-2', ]), 'bar-3')
def test_missing(self): self.assertEqual(unique_name('foo', ['bar', 'baz']), 'foo')
def test_dupe(self): self.assertEqual(unique_name('bar', ['bar', 'baz']), 'bar-2')
def test_dupe_three(self): self.assertEqual( unique_name('bar-2', ['bar', 'baz', 'bar-2',]), 'bar-3')
def test_dupe_two(self): self.assertEqual(unique_name('bar', ['bar', 'baz', 'bar-1',]), 'bar-2')