Пример #1
0
 def test_search_weight_tolerance_blank(self):
     with self.assertRaises(ValueError):
         search(1, 0, 1, obj_list_full)
Пример #2
0
 def test_search_weight_limit_neg(self):
     with self.assertRaises(ValueError):
         search(-1, 1, 1, obj_list_full)
Пример #3
0
 def test_search_available_objects_qt_neg(self):
     with self.assertRaises(ValueError):
         search(1, 1, -1, None)
Пример #4
0
 def test_search_ok(self):
     result = search(1, 1, 1, obj_list_full)
     self.assertEqual(result, "ok")
Пример #5
0
 def test_search_available_objects_qt_blank(self):
     with self.assertRaises(ValueError):
         search(1, 1, 0, obj_list_full)