Skip to content

Commit

Permalink
added tests for property bounding_box of class Huisnummer refs #27
Browse files Browse the repository at this point in the history
  • Loading branch information
TalissaJoly committed Sep 2, 2014
1 parent 10b3c5c commit fcd7e70
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crabpy/tests/gateway/test_crab.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,18 @@ def test_status(self):
h.set_gateway(crab)
status = h.status
self.assertIsInstance(status, Statushuisnummer)

@unittest.skipUnless(
run_crab_integration_tests(),
'No CRAB Integration tests required'
)
def test_bounding_box(self):
crab = CrabGateway(crab_factory())
h = Huisnummer(1, 3, '51', 17718)
h.set_gateway(crab)
bounding = h.bounding_box
self.assertIsInstance(bounding, list)
self.assertEqual(len(bounding), 4)

def test_check_gateway_not_set(self):
h = Huisnummer(1, 3, '51', 17718)
Expand Down

0 comments on commit fcd7e70

Please sign in to comment.