dda-python-terraform/test/test_terraform.py

16 lines
302 B
Python
Raw Normal View History

2016-02-25 09:22:11 +00:00
from python_terraform import Terraform
2015-12-31 07:15:51 +00:00
class TestTerraform:
2016-02-25 09:22:11 +00:00
def test_apply_and_destory(self):
tf = Terraform()
ret_code, out, err = tf.apply()
2015-12-31 07:15:51 +00:00
2016-02-25 09:22:11 +00:00
print out
print err
# assert ret_code, 0
2015-12-31 07:15:51 +00:00
2016-02-25 09:22:11 +00:00
ret_code, out, err = tf.destroy()
2015-12-31 07:15:51 +00:00
2016-02-25 09:22:11 +00:00
assert ret_code, 0