From 88fba7a73ce08388b6fbc53ec8cc4266404d26ad Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 23 Mar 2014 15:38:23 +0200 Subject: Added Context class and tests --- tests/test_gsxws.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index 57b83ab..b400639 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -85,13 +85,15 @@ class TestLookupFunctions(RemoteTestCase): class TestEscalationFunctions(RemoteTestCase): - @skip("Skip") def setUp(self): super(TestEscalationFunctions, self).setUp() esc = escalations.Escalation() esc.shipTo = env['GSX_SHIPTO'] esc.issueTypeCode = 'WS' esc.notes = 'This is a test' + c1 = escalations.Context(1, 'DGKFL06JDHJP') + c2 = escalations.Context(12, '2404776') + esc.escalationContext = [c1, c2] self.escalation = esc.create() def test_create_general_escalation(self): @@ -104,6 +106,7 @@ class TestEscalationFunctions(RemoteTestCase): result = esc.update() self.assertEqual(result.updateStatus, 'SUCCESS') + @skip("Skip") def test_attach_general_escalation(self): esc = escalations.Escalation() esc.escalationId = self.escalation.escalationId -- cgit v1.2.3