{"action":"created","comment":{"url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/comments/53707311","id":53707311,"diff_hunk":"@@ -0,0 +1,696 @@\n+import re\n+import json\n+from string import digits, uppercase, capwords\n+import datetime\n+\n+from django import http\n+from django.conf import settings\n+\n+import pytest\n+\n+from nomination import url_handler, models\n+import factories\n+\n+\n+pytestmark = pytest.mark.django_db\n+alnum_list = sorted(digits + uppercase)\n+\n+\n+def test_alphabetical_browse():\n+    surts = {\n+        'A': ('http://(org,alarm,)', 'http://(org,a'),\n+        'C': ('http://(org,charlie,)', 'http://(org,c'),\n+        '1': ('http://(org,123,)', 'http://(org,1')\n+    }\n+    project = factories.ProjectFactory()\n+    # Create the surts we're expecting to see represented in the returned dict.\n+    [factories.SURTFactory(url_project=project, value=surts[key][0]) for key in surts]\n+    expected = {'org': [(x, surts[x][1] if surts.get(x) else None) for x in alnum_list]}\n+    # Create another unrelated SURT to make sure we aren't grabbing everything.\n+    factories.SURTFactory()\n+    results = url_handler.alphabetical_browse(project)\n+\n+    assert results == expected\n+\n+\n+@pytest.mark.parametrize('surt, expected', [\n+    ('http://(,)', {}),\n+    ('http://(org,)', {'org': [(x, None) for x in alnum_list]})\n+])\n+def test_alphabetical_browse_domains_not_found(surt, expected):\n+    project = factories.ProjectFactory()\n+    factories.SURTFactory(url_project=project, value=surt)\n+    results = url_handler.alphabetical_browse(project)\n+\n+    assert results == expected\n+\n+\n+def test_alphabetical_browse_fake_project():\n+    project = 'not a real project'\n+    with pytest.raises(http.Http404):\n+        url_handler.alphabetical_browse(project)\n+\n+\n+def test_get_metadata():\n+    project = factories.ProjectFactory()\n+    vals = [x.metadata for x in factories.MetadataValuesFactory.create_batch(3)]\n+    metadata = [factories.ProjectMetadataFactory(project=project, metadata=x) for x in vals]\n+    expected = [(x, [models.Metadata_Values.objects.get(metadata=x).value]) for x in metadata]\n+    results = url_handler.get_metadata(project)\n+\n+    assert str(sorted(results, key=str)) == str(sorted(expected, key=str))\n+\n+\n+def test_get_metadata_with_valueset():\n+    project = factories.ProjectFactory()\n+    valset = factories.ValuesetFactory()\n+    vals = [factories.ValuesetValuesFactory(valueset=valset).value for i in range(3)]\n+    metadata = factories.MetadataFactory(value_sets=[valset])\n+    factories.ProjectMetadataFactory(project=project, metadata=metadata)\n+    results = url_handler.get_metadata(project)\n+\n+    for _, value_iter in results:\n+        assert list(value_iter).sort() == vals.sort()\n+\n+\n+@pytest.mark.parametrize('posted_data, processed_posted_data, expected', [\n+    (\n+        {'color': ['blue', 'other_specify']},\n+        {'color': ['blue', 'other_specify'], 'color_other': 'magenta'},\n+        {'color': ['blue', 'magenta'], 'color_other': 'magenta'}\n+    ),\n+    (\n+        {'color': ['blue', 'other_specify']},\n+        {'color': ['blue', 'other_specify']},\n+        {'color': ['blue']}\n+    ),\n+    (\n+        {'color': ['blue', 'green']},\n+        {'color': ['blue', 'green']},\n+        {'color': ['blue', 'green']}\n+    ),\n+    (\n+        {'color': ['other_specify']},\n+        {'color': 'other_specify', 'color_other': 'magenta'},\n+        {'color': 'magenta', 'color_other': 'magenta'}\n+    ),\n+    pytest.mark.xfail((\n+        {'color': ['other_specify']},\n+        {'color': 'other_specify'},\n+        {}\n+    ))\n+])\n+def test_handle_metadata(rf, posted_data, processed_posted_data, expected):\n+    request = rf.post('/', posted_data)\n+    assert url_handler.handle_metadata(request, processed_posted_data) == expected\n+\n+\n+@pytest.mark.parametrize('date_str', [\n+    '2006-10-25',\n+    '10/25/2006',\n+    '10/25/06',\n+    'Oct 25 2006',\n+    'Oct 25, 2006',\n+    '25 Oct 2006',\n+    '25 Oct, 2006',\n+    'October 25 2006',\n+    'October 25, 2006',\n+    '25 October 2006',\n+    '25 October, 2006'\n+])\n+def test_validate_date_with_valid_dates(date_str):\n+    assert isinstance(url_handler.validate_date(date_str), datetime.date)\n+\n+\n+def test_validate_date_with_invalid_date():\n+    date_str = '2006, Oct 25'\n+    assert url_handler.validate_date(date_str) is None\n+\n+\n+def test_add_url():\n+    project = factories.ProjectWithMetadataFactory()\n+    attribute_names = [x.name for x in project.metadata.all()]\n+    value = 'some_value'\n+    form_data = {\n+        'url_value': 'http://www.example.com',\n+        'nominator_email': 'somebody@someplace.com',\n+        'nominator_name': 'John Lambda',\n+        'nominator_institution': 'UNT',\n+        attribute_names[0]: value\n+    }\n+    expected = [\n+        'You have successfully nominated {0}'.format(form_data['url_value']),\n+        'You have successfully added the {0} \"{1}\" for {2}'.format(\n+            attribute_names[0], value, form_data['url_value'])\n+    ]\n+\n+    assert url_handler.add_url(project, form_data) == expected\n+\n+\n+def test_add_url_cannot_get_system_nominator():\n+    form_data = {'url_value': 'http://www.example.com'}\n+    project = factories.ProjectFactory()\n+    models.Nominator.objects.get().delete()\n+\n+    with pytest.raises(http.Http404):\n+        url_handler.add_url(project, form_data)\n+\n+\n+@pytest.mark.xfail(reason='Called function surt_exists raises 404, does not return Falsy value.')\n+def test_add_url_cannot_get_or_create_surt():\n+    form_data = {'url_value': 'http://www.example.com'}\n+    project = None\n+    with pytest.raises(http.Http404):\n+        url_handler.add_url(project, form_data)\n+\n+\n+def test_add_url_cannot_get_or_create_nominator():\n+    form_data = {\n+        'url_value': 'http://www.example.com',\n+        'nominator_email': None,\n+        'nominator_name': None,\n+        'nominator_institution': None\n+    }\n+    project = factories.ProjectFactory()\n+\n+    with pytest.raises(http.Http404):\n+        url_handler.add_url(project, form_data)\n+\n+\n+def test_add_metadata():\n+    project = factories.ProjectWithMetadataFactory()\n+    nominator = factories.NominatorFactory()\n+    attribute_names = [x.name for x in project.metadata.all()]\n+    value = 'some_value'\n+    form_data = {\n+        'nominator_email': nominator.nominator_email,\n+        'scope': '1',\n+        'url_value': 'http://www.example.com',\n+        attribute_names[0]: value\n+    }\n+    expected = [\n+        'You have successfully nominated {0}'.format(form_data['url_value']),\n+        'You have successfully added the {0} \"{1}\" for {2}'.format(\n+            attribute_names[0], value, form_data['url_value'])\n+    ]\n+\n+    assert url_handler.add_metadata(project, form_data) == expected\n+\n+\n+def test_add_metadata_nominator_does_not_exist_in_project():\n+    project = factories.ProjectFactory()\n+    form_data = {'nominator_email': 'someone@someplace.com'}\n+\n+    with pytest.raises(http.Http404):\n+        url_handler.add_metadata(project, form_data)\n+\n+\n+@pytest.mark.parametrize('url, expected', [\n+    ('http://www.example.com', 'http://www.example.com'),\n+    ('   http://www.example.com   ', 'http://www.example.com'),\n+    ('https://www.example.com', 'http://www.example.com'),\n+    ('http://http://www.example.com', 'http://www.example.com'),\n+    ('http://www.example.com///', 'http://www.example.com')\n+])\n+def test_check_url(url, expected):\n+    assert url_handler.check_url(url) == expected\n+\n+\n+def test_get_nominator_when_nominator_exists():\n+    nominator = factories.NominatorFactory()\n+    form_data = {'nominator_email': nominator.nominator_email}\n+    assert url_handler.get_nominator(form_data) == nominator\n+\n+\n+def test_get_nominator_when_nominator_does_not_exist():\n+    form_data = {\n+        'nominator_email': 'somebody@somewhere.com',\n+        'nominator_name': 'John Smith',\n+        'nominator_institution': 'UNT'\n+    }\n+\n+    assert len(models.Nominator.objects.all()) == 1\n+    new_nominator = url_handler.get_nominator(form_data)\n+    assert len(models.Nominator.objects.all()) == 2\n+    for key in form_data.keys():\n+        assert getattr(new_nominator, key) == form_data[key]\n+\n+\n+def test_get_nominator_when_nominator_cannot_be_created():\n+    form_data = {\n+        'nominator_email': 'somebody@somewhere.com',\n+        'nominator_name': None,\n+        'nominator_institution': None\n+    }\n+    new_nominator = url_handler.get_nominator(form_data)\n+\n+    assert new_nominator is False\n+\n+\n+@pytest.mark.parametrize('scope_value, expected', [\n+    ('1', 'You have already declared {} as \"In Scope\"'),\n+    ('0', 'You have already declared {} as \"Out of Scope\"')\n+])\n+def test_nominate_url_nomination_exists(scope_value, expected):\n+    project = factories.ProjectFactory()\n+    nominator = factories.NominatorFactory()\n+    form_data = {'url_value': 'http://www.example.com'}\n+    factories.NominatedURLFactory(\n+        url_nominator=nominator,\n+        url_project=project,\n+        entity=form_data['url_value'],\n+        value=scope_value\n+    )\n+\n+    assert (url_handler.nominate_url(project, nominator, form_data, scope_value) ==\n+            [expected.format(form_data['url_value'])])\n+\n+\n+@pytest.mark.parametrize('scope_value, expected', [\n+    ('1', 'You have successfully declared {} as \"In Scope\"'),\n+    ('0', 'You have successfully declared {} as \"Out of Scope\"')\n+])\n+def test_nominate_url_nomination_modified(scope_value, expected):\n+    project = factories.ProjectFactory()\n+    nominator = factories.NominatorFactory()\n+    form_data = {'url_value': 'http://www.example.com'}\n+    factories.NominatedURLFactory(\n+        url_nominator=nominator,\n+        url_project=project,\n+        entity=form_data['url_value'],\n+        value='1' if scope_value == '0' else '0'\n+    )\n+\n+    assert (url_handler.nominate_url(project, nominator, form_data, scope_value) ==\n+            [expected.format(form_data['url_value'])])\n+\n+\n+def test_nominate_url_new_nomination():\n+    project = factories.ProjectFactory()\n+    nominator = factories.NominatorFactory()\n+    form_data = {'url_value': 'http://www.example.com'}\n+    scope_value = 1\n+    expected = ['You have successfully nominated {0}'.format(form_data['url_value'])]\n+\n+    assert url_handler.nominate_url(project, nominator, form_data, scope_value) == expected\n+\n+\n+def test_nominate_url_cannot_create_nomination():\n+    project = None\n+    nominator = None\n+    form_data = {}\n+    scope_value = None\n+\n+    with pytest.raises(http.Http404):\n+        url_handler.nominate_url(project, nominator, form_data, scope_value)\n+\n+\n+@pytest.mark.parametrize('attr_value', [\n+    ['some_value', ],\n+    ['some_value', 'some_other_value']\n+])\n+def test_add_other_attribute(attr_value):","path":"tests/test_url_handler.py","position":312,"original_position":312,"commit_id":"3a4e9def4753d90639dcb5ba8c84c63f06cbba38","original_commit_id":"3a4e9def4753d90639dcb5ba8c84c63f06cbba38","user":{"login":"damonkelley","id":4121849,"avatar_url":"https://avatars.githubusercontent.com/u/4121849?v=3","gravatar_id":"","url":"https://api.github.com/users/damonkelley","html_url":"https://github.com/damonkelley","followers_url":"https://api.github.com/users/damonkelley/followers","following_url":"https://api.github.com/users/damonkelley/following{/other_user}","gists_url":"https://api.github.com/users/damonkelley/gists{/gist_id}","starred_url":"https://api.github.com/users/damonkelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damonkelley/subscriptions","organizations_url":"https://api.github.com/users/damonkelley/orgs","repos_url":"https://api.github.com/users/damonkelley/repos","events_url":"https://api.github.com/users/damonkelley/events{/privacy}","received_events_url":"https://api.github.com/users/damonkelley/received_events","type":"User","site_admin":false},"body":"We talked about this one. Maybe look at inlining the test parameters and just creating a list like\r\n\r\n```python\r\ntemplate = 'You have successfully added the {0} \"{1}\" for {2}'\r\nexpected = [\r\n    template.format(...),\r\n    # ...\r\n]\r\n```","created_at":"2016-02-22T22:47:53Z","updated_at":"2016-02-22T22:47:53Z","html_url":"https://github.com/unt-libraries/django-nomination/pull/20#discussion_r53707311","pull_request_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/comments/53707311"},"html":{"href":"https://github.com/unt-libraries/django-nomination/pull/20#discussion_r53707311"},"pull_request":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20","id":57544980,"html_url":"https://github.com/unt-libraries/django-nomination/pull/20","diff_url":"https://github.com/unt-libraries/django-nomination/pull/20.diff","patch_url":"https://github.com/unt-libraries/django-nomination/pull/20.patch","issue_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/20","number":20,"state":"open","locked":false,"title":"Test url handlers","user":{"login":"somexpert","id":5580991,"avatar_url":"https://avatars.githubusercontent.com/u/5580991?v=3","gravatar_id":"","url":"https://api.github.com/users/somexpert","html_url":"https://github.com/somexpert","followers_url":"https://api.github.com/users/somexpert/followers","following_url":"https://api.github.com/users/somexpert/following{/other_user}","gists_url":"https://api.github.com/users/somexpert/gists{/gist_id}","starred_url":"https://api.github.com/users/somexpert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somexpert/subscriptions","organizations_url":"https://api.github.com/users/somexpert/orgs","repos_url":"https://api.github.com/users/somexpert/repos","events_url":"https://api.github.com/users/somexpert/events{/privacy}","received_events_url":"https://api.github.com/users/somexpert/received_events","type":"User","site_admin":false},"body":"Adds test for url_handlers.py. Fixes #16.","created_at":"2016-01-28T18:33:59Z","updated_at":"2016-02-22T22:47:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44c765161d38907fcab8df04203e0f4393994571","assignee":{"login":"somexpert","id":5580991,"avatar_url":"https://avatars.githubusercontent.com/u/5580991?v=3","gravatar_id":"","url":"https://api.github.com/users/somexpert","html_url":"https://github.com/somexpert","followers_url":"https://api.github.com/users/somexpert/followers","following_url":"https://api.github.com/users/somexpert/following{/other_user}","gists_url":"https://api.github.com/users/somexpert/gists{/gist_id}","starred_url":"https://api.github.com/users/somexpert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somexpert/subscriptions","organizations_url":"https://api.github.com/users/somexpert/orgs","repos_url":"https://api.github.com/users/somexpert/repos","events_url":"https://api.github.com/users/somexpert/events{/privacy}","received_events_url":"https://api.github.com/users/somexpert/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/unt-libraries/django-nomination/milestones/1","html_url":"https://github.com/unt-libraries/django-nomination/milestones/Test%20coverage","labels_url":"https://api.github.com/repos/unt-libraries/django-nomination/milestones/1/labels","id":1535061,"number":1,"title":"Test coverage","description":"Add tests for all the major components of django-nomination.","creator":{"login":"somexpert","id":5580991,"avatar_url":"https://avatars.githubusercontent.com/u/5580991?v=3","gravatar_id":"","url":"https://api.github.com/users/somexpert","html_url":"https://github.com/somexpert","followers_url":"https://api.github.com/users/somexpert/followers","following_url":"https://api.github.com/users/somexpert/following{/other_user}","gists_url":"https://api.github.com/users/somexpert/gists{/gist_id}","starred_url":"https://api.github.com/users/somexpert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somexpert/subscriptions","organizations_url":"https://api.github.com/users/somexpert/orgs","repos_url":"https://api.github.com/users/somexpert/repos","events_url":"https://api.github.com/users/somexpert/events{/privacy}","received_events_url":"https://api.github.com/users/somexpert/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":7,"state":"open","created_at":"2016-01-22T17:15:42Z","updated_at":"2016-02-10T17:38:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20/commits","review_comments_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20/comments","review_comment_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/20/comments","statuses_url":"https://api.github.com/repos/unt-libraries/django-nomination/statuses/3a4e9def4753d90639dcb5ba8c84c63f06cbba38","head":{"label":"unt-libraries:test-url-handlers","ref":"test-url-handlers","sha":"3a4e9def4753d90639dcb5ba8c84c63f06cbba38","user":{"login":"unt-libraries","id":6526233,"avatar_url":"https://avatars.githubusercontent.com/u/6526233?v=3","gravatar_id":"","url":"https://api.github.com/users/unt-libraries","html_url":"https://github.com/unt-libraries","followers_url":"https://api.github.com/users/unt-libraries/followers","following_url":"https://api.github.com/users/unt-libraries/following{/other_user}","gists_url":"https://api.github.com/users/unt-libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/unt-libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt-libraries/subscriptions","organizations_url":"https://api.github.com/users/unt-libraries/orgs","repos_url":"https://api.github.com/users/unt-libraries/repos","events_url":"https://api.github.com/users/unt-libraries/events{/privacy}","received_events_url":"https://api.github.com/users/unt-libraries/received_events","type":"Organization","site_admin":false},"repo":{"id":50130906,"name":"django-nomination","full_name":"unt-libraries/django-nomination","owner":{"login":"unt-libraries","id":6526233,"avatar_url":"https://avatars.githubusercontent.com/u/6526233?v=3","gravatar_id":"","url":"https://api.github.com/users/unt-libraries","html_url":"https://github.com/unt-libraries","followers_url":"https://api.github.com/users/unt-libraries/followers","following_url":"https://api.github.com/users/unt-libraries/following{/other_user}","gists_url":"https://api.github.com/users/unt-libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/unt-libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt-libraries/subscriptions","organizations_url":"https://api.github.com/users/unt-libraries/orgs","repos_url":"https://api.github.com/users/unt-libraries/repos","events_url":"https://api.github.com/users/unt-libraries/events{/privacy}","received_events_url":"https://api.github.com/users/unt-libraries/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unt-libraries/django-nomination","description":"A Django application for nominating URLs by project.","fork":false,"url":"https://api.github.com/repos/unt-libraries/django-nomination","forks_url":"https://api.github.com/repos/unt-libraries/django-nomination/forks","keys_url":"https://api.github.com/repos/unt-libraries/django-nomination/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unt-libraries/django-nomination/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unt-libraries/django-nomination/teams","hooks_url":"https://api.github.com/repos/unt-libraries/django-nomination/hooks","issue_events_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/events{/number}","events_url":"https://api.github.com/repos/unt-libraries/django-nomination/events","assignees_url":"https://api.github.com/repos/unt-libraries/django-nomination/assignees{/user}","branches_url":"https://api.github.com/repos/unt-libraries/django-nomination/branches{/branch}","tags_url":"https://api.github.com/repos/unt-libraries/django-nomination/tags","blobs_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/refs{/sha}","trees_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unt-libraries/django-nomination/statuses/{sha}","languages_url":"https://api.github.com/repos/unt-libraries/django-nomination/languages","stargazers_url":"https://api.github.com/repos/unt-libraries/django-nomination/stargazers","contributors_url":"https://api.github.com/repos/unt-libraries/django-nomination/contributors","subscribers_url":"https://api.github.com/repos/unt-libraries/django-nomination/subscribers","subscription_url":"https://api.github.com/repos/unt-libraries/django-nomination/subscription","commits_url":"https://api.github.com/repos/unt-libraries/django-nomination/commits{/sha}","git_commits_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/commits{/sha}","comments_url":"https://api.github.com/repos/unt-libraries/django-nomination/comments{/number}","issue_comment_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/comments{/number}","contents_url":"https://api.github.com/repos/unt-libraries/django-nomination/contents/{+path}","compare_url":"https://api.github.com/repos/unt-libraries/django-nomination/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unt-libraries/django-nomination/merges","archive_url":"https://api.github.com/repos/unt-libraries/django-nomination/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unt-libraries/django-nomination/downloads","issues_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues{/number}","pulls_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls{/number}","milestones_url":"https://api.github.com/repos/unt-libraries/django-nomination/milestones{/number}","notifications_url":"https://api.github.com/repos/unt-libraries/django-nomination/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unt-libraries/django-nomination/labels{/name}","releases_url":"https://api.github.com/repos/unt-libraries/django-nomination/releases{/id}","deployments_url":"https://api.github.com/repos/unt-libraries/django-nomination/deployments","created_at":"2016-01-21T19:22:05Z","updated_at":"2016-01-21T19:24:52Z","pushed_at":"2016-02-22T21:28:14Z","git_url":"git://github.com/unt-libraries/django-nomination.git","ssh_url":"git@github.com:unt-libraries/django-nomination.git","clone_url":"https://github.com/unt-libraries/django-nomination.git","svn_url":"https://github.com/unt-libraries/django-nomination","homepage":null,"size":339,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":32,"forks":0,"open_issues":32,"watchers":0,"default_branch":"master"}},"base":{"label":"unt-libraries:master","ref":"master","sha":"b800a16cec5ee56833a185bc9e5477a24f2cc953","user":{"login":"unt-libraries","id":6526233,"avatar_url":"https://avatars.githubusercontent.com/u/6526233?v=3","gravatar_id":"","url":"https://api.github.com/users/unt-libraries","html_url":"https://github.com/unt-libraries","followers_url":"https://api.github.com/users/unt-libraries/followers","following_url":"https://api.github.com/users/unt-libraries/following{/other_user}","gists_url":"https://api.github.com/users/unt-libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/unt-libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt-libraries/subscriptions","organizations_url":"https://api.github.com/users/unt-libraries/orgs","repos_url":"https://api.github.com/users/unt-libraries/repos","events_url":"https://api.github.com/users/unt-libraries/events{/privacy}","received_events_url":"https://api.github.com/users/unt-libraries/received_events","type":"Organization","site_admin":false},"repo":{"id":50130906,"name":"django-nomination","full_name":"unt-libraries/django-nomination","owner":{"login":"unt-libraries","id":6526233,"avatar_url":"https://avatars.githubusercontent.com/u/6526233?v=3","gravatar_id":"","url":"https://api.github.com/users/unt-libraries","html_url":"https://github.com/unt-libraries","followers_url":"https://api.github.com/users/unt-libraries/followers","following_url":"https://api.github.com/users/unt-libraries/following{/other_user}","gists_url":"https://api.github.com/users/unt-libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/unt-libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt-libraries/subscriptions","organizations_url":"https://api.github.com/users/unt-libraries/orgs","repos_url":"https://api.github.com/users/unt-libraries/repos","events_url":"https://api.github.com/users/unt-libraries/events{/privacy}","received_events_url":"https://api.github.com/users/unt-libraries/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unt-libraries/django-nomination","description":"A Django application for nominating URLs by project.","fork":false,"url":"https://api.github.com/repos/unt-libraries/django-nomination","forks_url":"https://api.github.com/repos/unt-libraries/django-nomination/forks","keys_url":"https://api.github.com/repos/unt-libraries/django-nomination/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unt-libraries/django-nomination/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unt-libraries/django-nomination/teams","hooks_url":"https://api.github.com/repos/unt-libraries/django-nomination/hooks","issue_events_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/events{/number}","events_url":"https://api.github.com/repos/unt-libraries/django-nomination/events","assignees_url":"https://api.github.com/repos/unt-libraries/django-nomination/assignees{/user}","branches_url":"https://api.github.com/repos/unt-libraries/django-nomination/branches{/branch}","tags_url":"https://api.github.com/repos/unt-libraries/django-nomination/tags","blobs_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/refs{/sha}","trees_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unt-libraries/django-nomination/statuses/{sha}","languages_url":"https://api.github.com/repos/unt-libraries/django-nomination/languages","stargazers_url":"https://api.github.com/repos/unt-libraries/django-nomination/stargazers","contributors_url":"https://api.github.com/repos/unt-libraries/django-nomination/contributors","subscribers_url":"https://api.github.com/repos/unt-libraries/django-nomination/subscribers","subscription_url":"https://api.github.com/repos/unt-libraries/django-nomination/subscription","commits_url":"https://api.github.com/repos/unt-libraries/django-nomination/commits{/sha}","git_commits_url":"https://api.github.com/repos/unt-libraries/django-nomination/git/commits{/sha}","comments_url":"https://api.github.com/repos/unt-libraries/django-nomination/comments{/number}","issue_comment_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues/comments{/number}","contents_url":"https://api.github.com/repos/unt-libraries/django-nomination/contents/{+path}","compare_url":"https://api.github.com/repos/unt-libraries/django-nomination/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unt-libraries/django-nomination/merges","archive_url":"https://api.github.com/repos/unt-libraries/django-nomination/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unt-libraries/django-nomination/downloads","issues_url":"https://api.github.com/repos/unt-libraries/django-nomination/issues{/number}","pulls_url":"https://api.github.com/repos/unt-libraries/django-nomination/pulls{/number}","milestones_url":"https://api.github.com/repos/unt-libraries/django-nomination/milestones{/number}","notifications_url":"https://api.github.com/repos/unt-libraries/django-nomination/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unt-libraries/django-nomination/labels{/name}","releases_url":"https://api.github.com/repos/unt-libraries/django-nomination/releases{/id}","deployments_url":"https://api.github.com/repos/unt-libraries/django-nomination/deployments","created_at":"2016-01-21T19:22:05Z","updated_at":"2016-01-21T19:24:52Z","pushed_at":"2016-02-22T21:28:14Z","git_url":"git://github.com/unt-libraries/django-nomination.git","ssh_url":"git@github.com:unt-libraries/django-nomination.git","clone_url":"https://github.com/unt-libraries/django-nomination.git","svn_url":"https://github.com/unt-libraries/django-nomination","homepage":null,"size":339,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":32,"forks":0,"open_issues":32,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20"},"html":{"href":"https://github.com/unt-libraries/django-nomination/pull/20"},"issue":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/issues/20"},"comments":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/unt-libraries/django-nomination/statuses/3a4e9def4753d90639dcb5ba8c84c63f06cbba38"}}}}