Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pep8 fixes.

  • Loading branch information...
commit 7a52106256132721933c2a078d0a1fcd99de60dd 1 parent 35e6b0e
@koenedaele authored
Showing with 13 additions and 13 deletions.
  1. +13 −13 skosprovider_oe/tests/test_providers.py
View
26 skosprovider_oe/tests/test_providers.py
@@ -2,13 +2,14 @@
try:
import unittest2 as unittest
-except ImportError: #pragma NO COVER
- import unittest #noqa
+except ImportError: # pragma NO COVER
+ import unittest # noqa
from skosprovider_oe.providers import (
OnroerendErfgoedProvider
)
+
class OnroerendErfgoedProviderTests(unittest.TestCase):
def setUp(self):
self.typologie = OnroerendErfgoedProvider(
@@ -26,13 +27,13 @@ def test_default_url(self):
self.assertEquals(
'https://inventaris.onroerenderfgoed.be/thesaurus/typologie',
typologie.url
- )
+ )
def test_get_vocabulary_id(self):
self.assertEquals('TYPOLOGIE', self.typologie.get_vocabulary_id())
def test_get_metadata(self):
- self.assertEquals({'id':'TYPOLOGIE', 'default_language': 'nl'},
+ self.assertEquals({'id': 'TYPOLOGIE', 'default_language': 'nl'},
self.typologie.get_metadata())
def test_get_by_unexisting_id(self):
@@ -40,27 +41,26 @@ def test_get_by_unexisting_id(self):
def test_find(self):
result = self.typologie.find({'label': 'kerken'})
- self.assertGreater(len(result),0)
+ self.assertGreater(len(result), 0)
for c in result:
- self.assertIn('id',c)
- self.assertIn('label',c)
+ self.assertIn('id', c)
+ self.assertIn('label', c)
def test_get_all(self):
result = self.typologie.get_all()
- self.assertGreater(len(result),0)
+ self.assertGreater(len(result), 0)
for c in result:
- self.assertIn('id',c)
- self.assertIn('label',c)
+ self.assertIn('id', c)
+ self.assertIn('label', c)
def test_expand_concept(self):
result = self.typologie.expand_concept(100)
- self.assertGreater(len(result),0)
+ self.assertGreater(len(result), 0)
def test_get_by_id(self):
kerken = self.typologie.find({'label': 'kerken'})
- for k in kerken:
+ for k in kerken:
result = self.typologie.get_by_id(k['id'])
self.assertIsInstance(result, dict)
self.assertIn('id', result)
self.assertIn('labels', result)
-
Please sign in to comment.
Something went wrong with that request. Please try again.