From f0df197735722f277f192507a158c39c95f6bb74 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 28 Jun 2013 12:25:05 -0400 Subject: [PATCH] Some tweaks on the license engine (not yet complete). --- awx/main/tests/licenses.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/awx/main/tests/licenses.py b/awx/main/tests/licenses.py index a8d980a7a7..4e9ce8db03 100644 --- a/awx/main/tests/licenses.py +++ b/awx/main/tests/licenses.py @@ -19,6 +19,18 @@ class LicenseTests(BaseTest): super(LicenseTests, self).setUp() def test_license_writer(self): + + writer = LicenseWriter( + company_name='acmecorp', + contact_name='Michael DeHaan', + contact_email='michael@ansibleworks.com', + license_date=25000, # seconds since epoch + instance_count=500 + ) + + print writer.get_data() + print writer.get_string() + assert 2 == 4 def test_license_reader(self):