Package trac :: Package tests :: Module contentgen

Module contentgen

source code

Functions
 
random_word(min_length=1) source code
 
random_unique_camel()
Returns a unique camelcase word pair
source code
 
random_sentence(word_count=None)
Generates a random sentence.
source code
 
random_paragraph(sentence_count=None) source code
 
random_page(paragraph_count=None) source code
Variables
  all_words = ['A', 'AOL', 'Aachen', 'Aaliyah', 'Aaron', 'Abbas'...
  __package__ = 'trac.tests'
  x = '\xc3\xa9tudes\n'

Imports: random, uuid


Function Details

random_sentence(word_count=None)

source code 
Generates a random sentence. The first word consists of the first 8 characters of a uuid to ensure uniqueness.
Parameters:
  • word_count - number of words in the sentence

Variables Details

all_words

Value:
['A',
 'AOL',
 'Aachen',
 'Aaliyah',
 'Aaron',
 'Abbas',
 'Abbasid',
 'Abbott',
...