dda-python-terraform/test/test_terraform.py
2016-02-25 17:22:11 +08:00

15 lines
302 B
Python

from python_terraform import Terraform
class TestTerraform:
def test_apply_and_destory(self):
tf = Terraform()
ret_code, out, err = tf.apply()
print out
print err
# assert ret_code, 0
ret_code, out, err = tf.destroy()
assert ret_code, 0