コード例 #1
0
ファイル: tests.py プロジェクト: avdata99/boletin_oficial
    def test_get_articulos_de_decreto_0_boletin_0(self):
        decretos = BoletinParser.get_decretos(self.boletines[0])

        articulos = BoletinParser.get_articulos(decretos[0])
        #hay mucha basura en el decreto 0, indices y demas
        #self.assertEqual(2, len(articulos))

        articulos = BoletinParser.get_articulos(decretos[1])
        self.assertEqual(4, len(articulos))
コード例 #2
0
    def test_get_articulos_de_decreto_0_boletin_0(self):
        decretos = BoletinParser.get_decretos(self.boletines[0])

        articulos = BoletinParser.get_articulos(decretos[0])
        #hay mucha basura en el decreto 0, indices y demas
        #self.assertEqual(2, len(articulos))

        articulos = BoletinParser.get_articulos(decretos[1])
        self.assertEqual(4, len(articulos))
コード例 #3
0
ファイル: tests.py プロジェクト: avdata99/boletin_oficial
 def test_get_decretos_de_boletin_0(self):
     decretos = BoletinParser.get_decretos(self.boletines[0])
     self.assertEqual(53, len(decretos))
コード例 #4
0
 def test_get_decretos_de_boletin_0(self):
     decretos = BoletinParser.get_decretos(self.boletines[0])
     self.assertEqual(53, len(decretos))