          assert_raises(Exception, bits.get_next_smallest, 0)
          assert_raises(Exception, bits.get_next_smallest, -1)
          num = int('011010111', base=2)
          expected = int('011001111', base=2)
          assert_equal(bits.get_next_smallest(num), expected)
          print('Success: test_get_next_smallest')
  
  def main():
      test = TestBits()
      test.test_get_next_largest()
 
</s> remove         assert_raises(Exception, bits.get_next_smallest, None)
        assert_raises(Exception, bits.get_next_smallest, 0)
        assert_raises(Exception, bits.get_next_smallest, -1)
 </s> add         self.assertRaises(Exception, bits.get_next_smallest, None)
        self.assertRaises(Exception, bits.get_next_smallest, 0)
        self.assertRaises(Exception, bits.get_next_smallest, -1) </s> remove         assert_equal(bits.get_next_largest(num), expected)
 </s> add         self.assertEqual(bits.get_next_largest(num), expected) </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     "        assert_equal(bits.get_next_smallest(num), expected)\n",
 </s> add     "        self.assertEqual(bits.get_next_smallest(num), expected)\n", </s> remove     "        assert_equal(bits.get_next_smallest(num), expected)\n",
 </s> add     "        self.assertEqual(bits.get_next_smallest(num), expected)\n",
        self.assertEqual(bits.get_next_smallest(num), expected)
          assert_raises(Exception, bits.get_next_smallest, 0)
          assert_raises(Exception, bits.get_next_smallest, -1)
          num = int('011010111', base=2)
          expected = int('011001111', base=2)
        self.assertEqual(bits.get_next_smallest(num), expected)
          print('Success: test_get_next_smallest')
  
  def main():
      test = TestBits()
      test.test_get_next_largest()
keep 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