old_contents: from ccmlib import common
  from . import ccmtest
  
  
  class TestCommon(ccmtest.Tester):
  
      def test_normalize_interface(self):
          normalized = common.normalize_interface(('::1', 9042))
          self.assertEqual(normalized, ('0:0:0:0:0:0:0:1', 9042))
  
          normalized = common.normalize_interface(('127.0.0.1', 9042))
          self.assertEqual(normalized, ('127.0.0.1', 9042))
  
          normalized = common.normalize_interface(('fe80::3e15:c2ff:fed3:db74%en0', 9042))
          self.assertEqual(normalized, ('fe80:0:0:0:3e15:c2ff:fed3:db74%en0', 9042))
  
          normalized = common.normalize_interface(('fe80::1%lo0', 9042))
          self.assertEqual(normalized, ('fe80:0:0:0:0:0:0:1%lo0', 9042))
  
          normalized = common.normalize_interface(('fd6d:404d:54cb::1', 9042))
          self.assertEqual(normalized, ('fd6d:404d:54cb:0:0:0:0:1', 9042))
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: import unittest
  
  from ccmlib import common
  from . import ccmtest
  
  
  class TestCommon(ccmtest.Tester):
  
      def test_normalize_interface(self):
          normalized = common.normalize_interface(('::1', 9042))
          self.assertEqual(normalized, ('0:0:0:0:0:0:0:1', 9042))
  
          normalized = common.normalize_interface(('127.0.0.1', 9042))
          self.assertEqual(normalized, ('127.0.0.1', 9042))
  
          normalized = common.normalize_interface(('fe80::3e15:c2ff:fed3:db74%en0', 9042))
          self.assertEqual(normalized, ('fe80:0:0:0:3e15:c2ff:fed3:db74%en0', 9042))
  
          normalized = common.normalize_interface(('fe80::1%lo0', 9042))
          self.assertEqual(normalized, ('fe80:0:0:0:0:0:0:1%lo0', 9042))
  
          normalized = common.normalize_interface(('fd6d:404d:54cb::1', 9042))
          self.assertEqual(normalized, ('fd6d:404d:54cb:0:0:0:0:1', 9042))
  
  if __name__ == '__main__':
      unittest.main()
  
subject: Add missing unittest import