Part of lp.testing.factory View In Hierarchy
Known subclasses: lp.codehosting.inmemory.FakeObjectFactory, lp.testing.factory.BareLaunchpadObjectFactory
Method | getUniqueEmailAddress | Undocumented |
Method | getUniqueInteger | Return an integer unique to this factory instance. |
Method | getUniqueHexString | Return a unique hexadecimal string. |
Method | getUniqueString | Return a string unique to this factory instance. |
Method | getUniqueUnicode | Undocumented |
Method | getUniqueURL | Return a URL unique to this run of the test case. |
Method | getUniqueDate | Return a unique date since January 1 2009. |
Method | makeCodeImportSourceDetails | Undocumented |
For each thread, this will be a series of increasing numbers, but the starting point will be unique per thread.
Parameters | digits | The number of digits in the string. 'None' means you don't care. |
Returns | A hexadecimal string, with 'a'-'f' in lower case. |
The string returned will always be a valid name that can be used in Launchpad URLs.
Parameters | prefix | Used as a prefix for the unique string. If unspecified, generates a name starting with 'unique' and mentioning the calling source location. |