Skip to content

Commit

Permalink
testcase para get_anuncios_ids()
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Sep 21, 2016
1 parent 5c96e96 commit b1723c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bormeparser/tests/test_borme.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def test_instance(self):
self.assertEqual(self.borme.url, 'https://boe.es/borme/dias/2015/02/10/pdfs/BORME-A-2015-27-10.pdf')
self.assertEqual(self.borme.filename, os.path.join(EXAMPLES_PATH, 'BORME-A-2015-27-10.pdf'))

def test_get_anuncios_ids(self):
ids = self.borme.get_anuncios_ids()
self.assertEqual(ids, list(range(57315, 57345)))

def test_json(self):
fp = tempfile.NamedTemporaryFile()
filename = fp.name
Expand Down

0 comments on commit b1723c6

Please sign in to comment.