Coverage for bookie.tests.factory : 98%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Provide tools for generating objects for testing purposes."""
"""Generate a random integer value
:param max: Maximum value to hit. """
"""Generates a random string from urandom.
:param length: Specify the number of chars in the generated string. """
"""Generate a random url that is totally bogus."""
"""Generate applog instances."""
'user': random_string(10), 'component': random_string(10), 'status': status, 'message': message, 'payload': '', })
"""Generate a fake bookmark for testing use.""" username="admin", desc=random_string(), ext=random_string(), tags=u"bookmarks")
"""Generate a fake user to test against."""
username = random_string(10)
|