-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad89ad9
commit 193c663
Showing
20 changed files
with
300 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,81 @@ | ||
import unittest | ||
|
||
from pruebas.test_móds.test_rae.rcrs import redes as r | ||
from tikon.central import Modelo | ||
from pruebas.test_móds.test_rae.rcrs import redes | ||
from tikon.móds.rae.red import RedAE | ||
|
||
|
||
class PruebaRed(unittest.TestCase): | ||
def test_1_insecto(símismo): | ||
res = Modelo(redes.red_1_insecto).simular('1 insecto', exper=redes.exper, t=10, depurar=True) | ||
res = Modelo(r.red_1_insecto).simular('1 insecto', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_red_depred(símismo): | ||
res = Modelo(redes.red_depred).simular('depred', exper=redes.exper, t=10, depurar=True) | ||
def test_depred(símismo): | ||
símismo.assertSetEqual(r.red_depred.presas(), set(r.sencillo.etapas)) | ||
res = Modelo(r.red_depred).simular('depred sub', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_red_depred_sub(símismo): | ||
res = Modelo(redes.red_depred_sub).simular('depred sub', exper=redes.exper, t=10, depurar=True) | ||
def test_depred_mútliples(símismo): | ||
símismo.assertSetEqual( | ||
set(r.red_depred_mútliples.presas()), set(r.sencillo.etapas).union(r.otro_sencillo.etapas) | ||
) | ||
res = Modelo(r.red_depred_mútliples).simular('depred', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_red_parasitismo(símismo): | ||
res = Modelo(redes.red_parasitismo).simular('parasitismo', exper=redes.exper, t=10, depurar=True) | ||
def test_parasitismo(símismo): | ||
res = Modelo(r.red_parasitismo).simular('parasitismo', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_red_esfécido(símismo): | ||
res = Modelo(redes.red_esfécido).simular('esfécido', exper=redes.exper, t=10, depurar=True) | ||
def test_esfécido(símismo): | ||
res = Modelo(r.red_esfécido).simular('esfécido', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_hiperparasitismo(símismo): | ||
res = Modelo(r.red_hiperparasitismo).simular('esfécido', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_parasitismo_circular(símismo): | ||
with símismo.assertRaises(ValueError): | ||
with RedAE(): | ||
r.parasitoide.parasita(r.metam_completa) | ||
r.hiperparasitoide.parasita(r.parasitoide) | ||
r.parasitoide.parasita(r.hiperparasitoide) | ||
|
||
def test_parasitoide_generalista(símismo): | ||
# Verifica que múltiples transiciones a la misma etapa (de huéspedes al parasitoide adulto) funcionen | ||
res = Modelo(r.red_paras_generalista).simular('paras generalista', exper=r.exper, t=10, depurar=True) | ||
|
||
def test_canibalismo(símismo): | ||
pass | ||
|
||
def test_depredador_y_parasitoide(símismo): | ||
pass | ||
|
||
def test_depredador_e_hyperparasitoide(símismo): | ||
pass | ||
|
||
def test_depredador_de_parasitoide(símismo): | ||
pass | ||
|
||
def test_depredador_de_hyperparasitoide(símismo): | ||
pass | ||
|
||
|
||
class PruebaParasitismo(unittest.TestCase): | ||
def test_entra_auto_mútiples_juveniles(símismo): | ||
pass | ||
|
||
def test_entra_auto_sin_juvenil(símismo): | ||
pass | ||
|
||
def test_entra_auto_juvenil_único(símismo): | ||
pass | ||
|
||
def test_entra_auto_huevo(símismo): | ||
pass | ||
|
||
def test_emerg_auto(símismo): | ||
pass | ||
|
||
def test_emerg_auto_entra_final(símismo): | ||
pass | ||
|
||
def test_emerge_antes_entra(símismo): | ||
pass | ||
|
||
def test_sin_espec(símismo): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.