def test_max_limit_ok(self): ids = [i for i in range(1, 90)] self.assertTrue(TaxaDB.check_list_ids(ids))
def test_max_limit_exceeded(self): """Check max length of ids raises an exception""" ids = [i for i in range(1, 1001)] with self.assertRaises(SystemExit): TaxaDB.check_list_ids(ids)