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