~ubuntu-branches/ubuntu/trusty/python-jenkinsapi/trusty-proposed

« back to all changes in this revision

Viewing changes to jenkinsapi_tests/test_utils/random_strings.py

  • Committer: Package Import Robot
  • Author(s): Al Stone
  • Date: 2014-01-06 18:12:26 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140106181226-j4n5l4idgxghlvwg
Tags: 0.2.16-1
* Update to latest upstream.
* Closes: #725589 -- FTBS due to unexpected upstream changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import random
 
2
import string
 
3
 
 
4
 
 
5
def random_string(length=10):
 
6
    return ''.join(random.choice(string.ascii_lowercase) for i in range(length))
 
7
 
 
8
if __name__ == '__main__':
 
9
    print random_string()