old_contents: 
  
  class Foo(object):
      def foo(self):
          return Bar().bar()
  
  
  def external_function():
      return 1
new_contents: class Foo(object):
      pass
  
  def external_function():
      return 1
subject: Remove irrelevant test code.