new_contents: from ..helpers import *
  
  class TestFastly(object):
      def setup(self):
          self.collectd = MagicMock()
          self.modules = patch.dict('sys.modules', {'collectd': self.collectd})
          self.modules.start()
  
          from collectd_cdn import fastly
          self.fastly = fastly.CdnFastly()
  
      def teardown(self):
          self.modules.stop()
  
subject: Patch sys.modules for collectd import