  class TestKnapsack(object):
  
      def test_knapsack_bottom_up(self):
          knapsack = Knapsack()
          assert_raises(TypeError, knapsack.fill_knapsack, None, None)
          assert_equal(knapsack.fill_knapsack(0, 0), 0)
          items = []
          items.append(Item(label='a', value=2, weight=2))
          items.append(Item(label='b', value=4, weight=2))
          items.append(Item(label='c', value=6, weight=4))
          items.append(Item(label='d', value=9, weight=5))
 
</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_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 class TestKnapsack(object):
 </s> add class TestKnapsack(unittest.TestCase): </s> remove     "        assert_raises(TypeError, knapsack.fill_knapsack, None, None)\n",
    "        assert_equal(knapsack.fill_knapsack(0, 0), 0)\n",
 </s> add     "        self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)\n",
    "        self.assertEqual(knapsack.fill_knapsack(0, 0), 0)\n", </s> remove     "        assert_raises(TypeError, knapsack.fill_knapsack, None, None)\n",
    "        assert_equal(knapsack.fill_knapsack(0, 0), 0)\n",
 </s> add     "        self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)\n",
    "        self.assertEqual(knapsack.fill_knapsack(0, 0), 0)\n",
        self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)
        self.assertEqual(knapsack.fill_knapsack(0, 0), 0)
  class TestKnapsack(object):
  
      def test_knapsack_bottom_up(self):
          knapsack = Knapsack()
        self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)
        self.assertEqual(knapsack.fill_knapsack(0, 0), 0)
        self.assertRaises(TypeError, knapsack.fill_knapsack, None, None)
        self.assertEqual(knapsack.fill_knapsack(0, 0), 0)
          items = []
          items.append(Item(label='a', value=2, weight=2))
          items.append(Item(label='b', value=4, weight=2))
          items.append(Item(label='c', value=6, weight=4))
          items.append(Item(label='d', value=9, weight=5))
keep keep keep keep replace replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/knapsack_01/test_knapsack.py