From b124b48a7589e8baa468b30f57194b243c6fa9bc Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Wed, 15 May 2013 19:04:30 +0100 Subject: [PATCH] No need to define NotImplementedError, Python has its own. --- openphoto/errors.py | 5 ----- tests/test_albums.py | 6 +++--- tests/test_photos.py | 6 +++--- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/openphoto/errors.py b/openphoto/errors.py index 218fd35..2d98eef 100644 --- a/openphoto/errors.py +++ b/openphoto/errors.py @@ -9,8 +9,3 @@ class OpenPhotoDuplicateError(OpenPhotoError): class OpenPhoto404Error(Exception): """ Indicates that an Http 404 error code was received (resource not found) """ pass - -class NotImplementedError(OpenPhotoError): - """ Indicates that the API function has not yet been coded - please help! """ - pass - diff --git a/tests/test_albums.py b/tests/test_albums.py index dc7dc2b..28d34bc 100644 --- a/tests/test_albums.py +++ b/tests/test_albums.py @@ -68,15 +68,15 @@ class TestAlbums(tests.test_base.TestBase): def test_form(self): """ If album.form gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.album.form(None) def test_add_photos(self): """ If album.add_photos gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.album.add_photos(None, None) def test_remove_photos(self): """ If album.remove_photos gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.album.remove_photos(None, None) diff --git a/tests/test_photos.py b/tests/test_photos.py index fcd69b8..fee3cd0 100644 --- a/tests/test_photos.py +++ b/tests/test_photos.py @@ -142,17 +142,17 @@ class TestPhotos(tests.test_base.TestBase): def test_replace(self): """ If photo.replace gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.photo.replace(None, None) def test_replace_encoded(self): """ If photo.replace_encoded gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.photo.replace_encoded(None, None) def test_dynamic_url(self): """ If photo.dynamic_url gets implemented, write a test! """ - with self.assertRaises(openphoto.NotImplementedError): + with self.assertRaises(NotImplementedError): self.client.photo.dynamic_url(None) def test_transform(self):