Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Add a detail to the test, but ensure it's name is unique.

This method checks whether ``name`` conflicts with a detail that has
already been added to the test. If it does, it will modify ``name`` to
avoid the conflict.

For more details see pydoc testtools.TestResult.

:param name: The name to give this detail.
:param content_object: The content object for this detail. See(more...)

src/t/e/testtools-0.9.35/testtools/tests/test_testcase.py   testtools(Download)
            def test(self):
                self.addDetailUniqueName("foo", content)
                self.addDetailUniqueName("foo", content)
        self.assertDetailsProvided(Case("test"), "addSuccess",
            ["foo", "foo-1"])

src/t/e/testtools-HEAD/testtools/tests/test_testcase.py   testtools(Download)
            def test(self):
                self.addDetailUniqueName("foo", content)
                self.addDetailUniqueName("foo", content)
        self.assertDetailsProvided(Case("test"), "addSuccess",
            ["foo", "foo-1"])