summaryrefslogtreecommitdiff
path: root/barbicanclient/tests/test_cas.py
diff options
context:
space:
mode:
Diffstat (limited to 'barbicanclient/tests/test_cas.py')
-rw-r--r--barbicanclient/tests/test_cas.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/barbicanclient/tests/test_cas.py b/barbicanclient/tests/test_cas.py
index 1a4961e..86ac118 100644
--- a/barbicanclient/tests/test_cas.py
+++ b/barbicanclient/tests/test_cas.py
@@ -131,3 +131,16 @@ class WhenTestingCAs(test_client.BaseEntityResource):
# Verify the correct URL was used to make the GET call
self.assertEqual(self.entity_href, m.last_request.url)
+
+ def test_get_formatted_data(self):
+ c_entity = cas.CA(api=None,
+ expiration=self.ca.expiration,
+ plugin_name=self.ca.plugin_name,
+ created=self.ca.created)
+
+ data = c_entity._get_formatted_data()
+
+ self.assertEqual(self.ca.plugin_name, data[6])
+ self.assertEqual(timeutils.parse_isotime(
+ self.ca.expiration).isoformat(),
+ data[8])