aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/requests/test_core.py
diff options
context:
space:
mode:
authorNat Williams <nwilliams@leapfrogonline.com>2012-04-17 14:42:57 -0500
committerNat Williams <nwilliams@leapfrogonline.com>2012-04-17 14:42:57 -0500
commit17649c939901573af53beeeeb9d7be08102d1503 (patch)
treefc3a99aafc36d61b7381043aede9807a66813886 /pygithub3/tests/requests/test_core.py
parentlet request objects specify custom body validations (diff)
downloadpython-github3-17649c939901573af53beeeeb9d7be08102d1503.tar.xz
python-github3-17649c939901573af53beeeeb9d7be08102d1503.zip
more specific exception for missing Request classes
Diffstat (limited to 'pygithub3/tests/requests/test_core.py')
-rw-r--r--pygithub3/tests/requests/test_core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygithub3/tests/requests/test_core.py b/pygithub3/tests/requests/test_core.py
index 9fcec10..4632056 100644
--- a/pygithub3/tests/requests/test_core.py
+++ b/pygithub3/tests/requests/test_core.py
@@ -6,8 +6,8 @@ from nose.tools import raises
from pygithub3.tests.utils.core import TestCase
from pygithub3.requests.base import Factory, Body, json, Request
-from pygithub3.exceptions import (UriInvalid, DoesNotExists, ValidationError,
- InvalidBodySchema)
+from pygithub3.exceptions import (UriInvalid, RequestDoesNotExist,
+ ValidationError, InvalidBodySchema)
from pygithub3.tests.utils.base import (mock_json, DummyRequest,
DummyRequestValidation)
from pygithub3.tests.utils.requests import (
@@ -29,8 +29,8 @@ class TestFactory(TestCase):
self.assertRaises(UriInvalid, self.f, '.invalid')
def test_BUILDER_with_fake_action(self):
- self.assertRaises(DoesNotExists, self.f, 'users.fake')
- self.assertRaises(DoesNotExists, self.f, 'fake.users')
+ self.assertRaises(RequestDoesNotExist, self.f, 'users.fake')
+ self.assertRaises(RequestDoesNotExist, self.f, 'fake.users')
def test_BUILDER_builds_users(self):
""" Users.get as real test because it wouldn't be useful mock