          assert_equal(results[1].label, 'b')
          total_value = 0
          for item in results:
              total_value += item.value
          assert_equal(total_value, expected_value)
          print('Success: test_knapsack_bottom_up')
  
      def test_knapsack_top_down(self):
          knapsack = KnapsackTopDown()
          assert_raises(TypeError, knapsack.fill_knapsack, None, None)
 
</s> remove         assert_equal(results[0].label, 'd')
        assert_equal(results[1].label, 'b')
 </s> add         self.assertEqual(results[0].label, 'd')
        self.assertEqual(results[1].label, 'b') </s> remove     "        assert_equal(total_value, expected_value)\n",
 </s> add     "        self.assertEqual(total_value, expected_value)\n", </s> remove     "        assert_equal(total_value, expected_value)\n",
 </s> add     "        self.assertEqual(total_value, expected_value)\n", </s> remove         assert_raises(TypeError, knapsack.fill_knapsack, None, None)
        assert_equal(knapsack.fill_knapsack(0, 0), 0)
 </s> add         self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)
        self.assertEqual(knapsack.fill_knapsack(0, 0), 0) </s> remove     "        assert_equal(results[0].label, 'd')\n",
    "        assert_equal(results[1].label, 'b')\n",
 </s> add     "        self.assertEqual(results[0].label, 'd')\n",
    "        self.assertEqual(results[1].label, 'b')\n",
        self.assertEqual(total_value, expected_value)
          assert_equal(results[1].label, 'b')
          total_value = 0
          for item in results:
              total_value += item.value
        self.assertEqual(total_value, expected_value)
          print('Success: test_knapsack_bottom_up')
  
      def test_knapsack_top_down(self):
          knapsack = KnapsackTopDown()
          assert_raises(TypeError, knapsack.fill_knapsack, None, None)
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/knapsack_01/test_knapsack.py