def test_resource_path_no_module(self):
     resource = migrate.TerraformResource('', 'google_project', 'project')
     self.assertEqual(resource.path(), 'google_project.project')
 def test_resource_path_with_module(self):
     resource = migrate.TerraformResource('module.project-factory', 'google_project', 'project')
     expected = 'module.project-factory.google_project.project'
     actual = resource.path()
     self.assertEqual(expected, actual)
 def test_resource_init(self):
     resource = migrate.TerraformResource('', 'google_project', 'project')
     self.assertEqual(resource.module, '')
     self.assertEqual(resource.resource_type, 'google_project')
     self.assertEqual(resource.name, 'project')