Skip to content

Commit 7e982d4

Browse files
committed
Adding unit test
1 parent 312e538 commit 7e982d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/managers/ticket_tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ def test_list_tickets_closed(self):
4343
self.assertIn(result['id'], [100, 101])
4444
self.assert_called_with('SoftLayer_Account', 'getClosedTickets')
4545

46+
def test_list_tickets_false(self):
47+
exception = self.assertRaises(ValueError,
48+
self.ticket.list_tickets,
49+
open_status=False,
50+
closed_status=False)
51+
52+
self.assertEquals('open_status and closed_status cannot both be False', str(exception))
53+
4654
def test_list_subjects(self):
4755
list_expected_ids = [1001, 1002, 1003, 1004, 1005]
4856

0 commit comments

Comments
 (0)