{"action":"closed","issue":{"url":"https://api.github.com/repos/PulpQE/pulp-smash/issues/23","repository_url":"https://api.github.com/repos/PulpQE/pulp-smash","labels_url":"https://api.github.com/repos/PulpQE/pulp-smash/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/PulpQE/pulp-smash/issues/23/comments","events_url":"https://api.github.com/repos/PulpQE/pulp-smash/issues/23/events","html_url":"https://github.com/PulpQE/pulp-smash/issues/23","id":114058298,"number":23,"title":"Use random data generation library","user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T14:13:11Z","updated_at":"2016-02-09T20:57:20Z","closed_at":"2016-02-09T20:57:20Z","body":"Let's use a proper library for generating random data. The intent is two-fold. First, I'd like to get rid of functions like this (from `pulp_smash.tests.platform.api_v2.test_user`):\r\n\r\n```python\r\ndef _rand_str():\r\n    \"\"\"Return a randomized string.\"\"\"\r\n    return type('')(randint(-100000, 100000))\r\n```\r\n\r\nSecond, having a good random data generation library lowers the friction for writing new tests. It's one less worry for a developer."}}