old_contents: # -*- coding: utf-8 -*-
  import sys
  import os
  sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'hosts')))
  from hosts import Hosts, HostsEntry
  
  
  def test_create_ipv4_instance():
      ''' add an ipv4 type entry '''
      hosts_entry = HostsEntry(entry_type='ipv4', address='1.2.3.4', names=['example.com', 'example'])
      assert hosts_entry.entry_type == 'ipv4'
      assert hosts_entry.address == '1.2.3.4'
      assert hosts_entry.names == ['example.com', 'example']
  
new_contents: # -*- coding: utf-8 -*-
  import sys
  import os
  sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'hosts')))
  from hosts import HostsEntry
  
  def test_create_ipv4_instance():
      """ add an ipv4 type entry """
      hosts_entry = HostsEntry(entry_type='ipv4', address='1.2.3.4', names=['example.com', 'example'])
      assert hosts_entry.entry_type == 'ipv4'
      assert hosts_entry.address == '1.2.3.4'
      assert hosts_entry.names == ['example.com', 'example']
  
  
subject: remove unused import.