From c1d744de2e3f59a18bd0943f29911ccafba7c1b5 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 17 Dec 2014 00:11:28 +0200 Subject: CompTIA fixes --- tests/test_gsxws.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index 4192b09..0ca4c78 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -9,7 +9,7 @@ from unittest import main, skip, TestCase from gsxws.objectify import parse, gsx_diags_timestamp from gsxws.products import Product from gsxws import (repairs, escalations, lookups, - GsxError, ServicePart, diagnostics,) + GsxError, ServicePart, diagnostics, comptia,) class RemoteTestCase(TestCase): @@ -26,6 +26,14 @@ class RemoteTestCase(TestCase): except AssertionError: self.assertIsInstance(val, int) + +class ComptiaTestCase(RemoteTestCase): + def test_fetch_comptia(self): + data = comptia.CompTIA().fetch() + print data + self.assertIsInstance(data['E'], dict) + + class DiagnosticsTestCase(RemoteTestCase): def setUp(self): super(DiagnosticsTestCase, self).setUp() -- cgit v1.2.3