Esempio n. 1
0
 def test_max_limit_ok(self):
     ids = [i for i in range(1, 90)]
     self.assertTrue(TaxaDB.check_list_ids(ids))
Esempio n. 2
0
 def test_max_limit_ok(self):
     ids = [i for i in range(1, 90)]
     self.assertTrue(TaxaDB.check_list_ids(ids))
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)