  from nose.tools import assert_equal, assert_raises
  
  
  class TestBits(object):
  
      def test_get_next_largest(self):
          bits = Bits()
          assert_raises(Exception, bits.get_next_largest, None)
          assert_raises(Exception, bits.get_next_largest, 0)
 
</s> remove         assert_raises(Exception, bits.get_next_largest, None)
        assert_raises(Exception, bits.get_next_largest, 0)
        assert_raises(Exception, bits.get_next_largest, -1)
 </s> add         self.assertRaises(Exception, bits.get_next_largest, None)
        self.assertRaises(Exception, bits.get_next_largest, 0)
        self.assertRaises(Exception, bits.get_next_largest, -1) </s> remove class TestBits(object):
 </s> add class TestBits(unittest.TestCase): </s> remove         assert_equal(bits.get_next_largest(num), expected)
 </s> add         self.assertEqual(bits.get_next_largest(num), expected) </s> remove class TestBits(object):
 </s> add class TestBits(unittest.TestCase): </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest
class TestBits(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestBits(unittest.TestCase):
  
      def test_get_next_largest(self):
          bits = Bits()
          assert_raises(Exception, bits.get_next_largest, None)
          assert_raises(Exception, bits.get_next_largest, 0)
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for bit_manipulation/ (#279) 
bit_manipulation/get_next/test_get_next_largest.py