old_contents: import unittest
  
  class myTestSuite(unittest.TestCase):
      def setup(self):
          pass
  
      def tearDown(self):
          pass
  
      def number2roman(self, number):
  	if(number == 2):
  	    return "II"
  
  	preset_roman = {1:"I",5:"V",10:"X",50:"L",100:"C",500:"D"}
  	if(preset_roman.has_key(number)):
  	    return preset_roman[number]
  	return "";
  
      def test_0_return_empty(self):
          self.assertEqual(self.number2roman(0), "")
  
      def test_1_return_I(self):
          self.assertEqual(self.number2roman(1), "I")
  
      def test_2_return_II(self):
          self.assertEqual(self.number2roman(2), "II")
  
  #    def test_3_return_III(self):
  #        self.assertEqual(self.number2roman(3), "III")
  
      def test_5_return_V(self):
          self.assertEqual(self.number2roman(5), "V")
  
      def test_10_return_X(self):
          self.assertEqual(self.number2roman(10), "X")
  
      def test_50_return_L(self):
          self.assertEqual(self.number2roman(50), "L")
  
      def test_100_return_C(self):
          self.assertEqual(self.number2roman(100), "C")
      
      def test_500_return_C(self):
          self.assertEqual(self.number2roman(500), "D")
  if __name__ == "__main__":
      unittest.main()
  
new_contents: import unittest
  
  class myTestSuite(unittest.TestCase):
      def setup(self):
          pass
  
      def tearDown(self):
          pass
  
      def number2roman(self, number):
  	preset_roman = {1:"I",5:"V",10:"X",50:"L",100:"C",500:"D"}
  	if(preset_roman.has_key(number)):
  	    return preset_roman[number]
  	if( number > 1 ):
  	    return "".ljust(number,preset_roman[1])
  	return "";
  
      def test_0_return_empty(self):
          self.assertEqual(self.number2roman(0), "")
  
      def test_1_return_I(self):
          self.assertEqual(self.number2roman(1), "I")
  
      def test_5_return_V(self):
          self.assertEqual(self.number2roman(5), "V")
  
      def test_10_return_X(self):
          self.assertEqual(self.number2roman(10), "X")
  
      def test_50_return_L(self):
          self.assertEqual(self.number2roman(50), "L")
  
      def test_100_return_C(self):
          self.assertEqual(self.number2roman(100), "C")
      
      def test_500_return_C(self):
          self.assertEqual(self.number2roman(500), "D")
  
      def test_2_return_II(self):
          self.assertEqual(self.number2roman(2), "II")
  
      def test_3_return_III(self):
          self.assertEqual(self.number2roman(3), "III")
  
  if __name__ == "__main__":
      unittest.main()
  
subject: rewrite 3 to III and refactor code