Esempio n. 1
0
 def test_search_weight_tolerance_blank(self):
     with self.assertRaises(ValueError):
         search(1, 0, 1, obj_list_full)
Esempio n. 2
0
 def test_search_weight_limit_neg(self):
     with self.assertRaises(ValueError):
         search(-1, 1, 1, obj_list_full)
Esempio n. 3
0
 def test_search_available_objects_qt_neg(self):
     with self.assertRaises(ValueError):
         search(1, 1, -1, None)
Esempio n. 4
0
 def test_search_ok(self):
     result = search(1, 1, 1, obj_list_full)
     self.assertEqual(result, "ok")
Esempio n. 5
0
 def test_search_available_objects_qt_blank(self):
     with self.assertRaises(ValueError):
         search(1, 1, 0, obj_list_full)