def METHOD_NAME(self):
    self.mod1.write("myvar = None\n")
    self.mod2.write("myvar = None\n")
    self.importer.update_resource(self.mod1)
    self.importer.update_resource(self.mod2)
    self.assertEqual({"mod1", "pkg.mod2"}, set(self.importer.get_modules("myvar")))