Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Get an integer unique to this test.

Returns an integer that is guaranteed to be unique to this instance.
Use this when you need an arbitrary integer in your test, or as a
helper for custom anonymous factory methods.

src/t/e/testtools-0.9.35/testtools/tests/test_testcase.py   testtools(Download)
    def test_getUniqueInteger(self):
        # getUniqueInteger returns an integer that increments each time you
        # call it.
        one = self.getUniqueInteger()
        self.assertEqual(1, one)
        two = self.getUniqueInteger()

src/t/e/testtools-HEAD/testtools/tests/test_testcase.py   testtools(Download)
    def test_getUniqueInteger(self):
        # getUniqueInteger returns an integer that increments each time you
        # call it.
        one = self.getUniqueInteger()
        self.assertEqual(1, one)
        two = self.getUniqueInteger()

src/p/y/python-subunit-0.0.18/python/subunit/tests/test_test_results.py   python-subunit(Download)
    def make_time(self):
        # Heh heh.
        return datetime.datetime(
            2000, 1, self.getUniqueInteger(), tzinfo=iso8601.UTC)
 

src/p/k/pkgme-devportal-0.5.1/devportalbinary/tests/test_metadata.py   pkgme-devportal(Download)
    def test_load_json_all_fields(self):
        metadata = {
            'foo': self.getUniqueString(),
            'bar': self.getUniqueInteger(),
            }