コード例 #1
0
 def test_to_upper_empty_input(self):
     # Setup
     input_text = ''
     expected_output = ''
     # Actual call
     output_text = to_upper(input_text)
     # Asserts
     self.assertEqual(output_text, expected_output)
コード例 #2
0
 def test_to_upper_lower_input(self):
     # Setup
     input_text = 'hello'
     expected_output = 'HELLO'
     # Actual call
     output_text = to_upper(input_text)
     # Asserts
     self.assertEqual(output_text, expected_output)