Example #1
0
 def test_version_check_failure_unsupported_terraform_version(self, *args):
     obj = TerraformParser('somefile', parse_it=False)
     obj.raw['format_version'] = obj.supported_format_versions[0]
     obj.raw['terraform_version'] = 'some_unsupported_terraform_version'
     with self.assertRaises(SystemExit):
         obj._version_check()
Example #2
0
 def test_version_check_success(self, *args):
     obj = TerraformParser('somefile', parse_it=False)
     obj.raw['format_version'] = obj.supported_format_versions[0]
     obj.raw['terraform_version'] = obj.supported_terraform_versions[0]
     self.assertTrue(obj._version_check())