  from nose.tools import assert_equal, assert_raises
  
  
  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)
 
</s> remove class TestKnapsack(object):
 </s> add class TestKnapsack(unittest.TestCase): </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 from nose.tools import assert_equal, assert_raises
 </s> add import unittest </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)
class TestKnapsack(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestKnapsack(unittest.TestCase):
  
      def test_knapsack_bottom_up(self):
          knapsack = Knapsack()
          assert_raises(TypeError, knapsack.fill_knapsack, None, None)
          assert_equal(knapsack.fill_knapsack(0, 0), 0)
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/knapsack_01/test_knapsack.py