{
  "output": "import unittest\nfrom unittest.mock import patch, MagicMock\nimport os\nimport sys\nimport importlib.util\n\n# Add project root to path\nPROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), \"..\"))\nsys.path.append(PROJECT_ROOT)\n\n\nclass TestScripts(unittest.TestCase):\n    def setUp(self):\n        # Patch get_boto_session for all tests to avoid real AWS calls\n        self.patcher = patch(\"aws_utils.get_boto_session\")\n        self.mock_session = self.patcher.start()\n        self.mock_client = MagicMock()\n        self.mock_session.return_value.client.return_value = self.mock_client\n\n    def tearDown(self):\n        self.patcher.stop()\n\n    def test_import_bwsuage(self):\n        \"\"\"Smoke test to ensure bwsuage.py can be imported.\"\"\"\n        spec = importlib.util.spec_from_file_location(\n            \"bwsuage\", os.path.join(PROJECT_ROOT, \"bwsuage.py\")\n        )\n        bwsuage = importlib.util.module_from_spec(spec)\n        spec.loader.exec_module(bwsuage)\n        self.assertTrue(hasattr(bwsuage, \"get_total_bandwidth_report\"))\n\n    def test_import_aws_bills(self):\n        \"\"\"Smoke test to ensure aws_bills.py can be imported.\"\"\"\n        spec = importlib.util.spec_from_file_location(\n            \"aws_bills\", os.path.join(PROJECT_ROOT, \"aws_bills.py\")\n        )\n        aws_bills = importlib.util.module_from_spec(spec)\n        spec.loader.exec_module(aws_bills)\n        self.assertTrue(hasattr(aws_bills, \"get_cost_for_range\"))\n\n    def test_import_aws_cost(self):\n        \"\"\"Smoke test to ensure aws_cost.py can be imported.\"\"\"\n        spec = importlib.util.spec_from_file_location(\n            \"aws_cost\", os.path.join(PROJECT_ROOT, \"aws_cost.py\")\n        )\n        aws_cost = importlib.util.module_from_spec(spec)\n        spec.loader.exec_module(aws_cost)\n        self.assertTrue(hasattr(aws_cost, \"fetch_costs_with_savings\"))\n\n    def test_import_aws_vpc(self):\n        \"\"\"Smoke test to ensure aws-vpc.py can be imported.\"\"\"\n        spec = importlib.util.spec_from_file_location(\n            \"aws_vpc\", os.path.join(PROJECT_ROOT, \"aws-vpc.py\")\n        )\n        aws_vpc = importlib.util.module_from_spec(spec)\n        spec.loader.exec_module(aws_vpc)\n        self.assertTrue(hasattr(aws_vpc, \"list_vpcs\"))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
}