Esempio n. 1
0
 def test_bad_genetic_map(self):
     species = stdpopsim.get_species("HomSap")
     with mock.patch("stdpopsim.cli.exit", autospec=True) as mocked_exit:
         cli.get_genetic_map_wrapper(species, "XXX")
         mocked_exit.assert_called_once_with(
             "Genetic map 'HomSap/XXX' not in catalog"
         )
Esempio n. 2
0
 def test_bad_genetic_map(self):
     species = stdpopsim.get_species("HomSap")
     with mock.patch("stdpopsim.cli.exit", autospec=True) as mocked_exit:
         cli.get_genetic_map_wrapper(species, "XXX")
         available_maps = ", ".join([gm.id for gm in species.genetic_maps])
         mocked_exit.assert_called_once_with(
             f"GeneticMap 'HomSap/XXX' not in catalog ({available_maps})")