コード例 #1
0
 def test_remove_url_empty_input(self):
     # Setup
     input_text = ''
     expected_output = ''
     # Actual call
     output_text = remove_url(input_text)
     # Asserts
     self.assertEqual(output_text, expected_output)
コード例 #2
0
 def test_remove_url_all_url(self):
     # Setup
     input_text = 'www.microsoft.com https://www.microsoft.com'
     expected_output = ' '
     # Actual call
     output_text = remove_url(input_text)
     # Asserts
     self.assertEqual(output_text, expected_output)