Skip to content

Commit b709547

Browse files
Merge pull request #1938 from ramkishor-ch/master
added unit test cases
2 parents 9df2a6f + 516aaf2 commit b709547

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/CLI/modules/account_tests.py

+20
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,23 @@ def test_order_upgrade(self):
195195
result = self.run_command(['account', 'orders', '--upgrades'])
196196
self.assert_no_fail(result)
197197
self.assert_called_with('SoftLayer_Account', 'getUpgradeRequests')
198+
199+
def test_account_events(self):
200+
result = self.run_command(['account', 'events', '--date-min', '5/9/2023'])
201+
self.assert_no_fail(result)
202+
self.assert_called_with(self.SLNOE, 'getAllObjects')
203+
204+
def test_account_planned_events(self):
205+
result = self.run_command(['account', 'events', '--planned'])
206+
self.assert_no_fail(result)
207+
self.assert_called_with(self.SLNOE, 'getAllObjects')
208+
209+
def test_account_unplanned_events(self):
210+
result = self.run_command(['account', 'events', '--unplanned'])
211+
self.assert_no_fail(result)
212+
self.assert_called_with(self.SLNOE, 'getAllObjects')
213+
214+
def test_account_announcement_events(self):
215+
result = self.run_command(['account', 'events', '--announcement'])
216+
self.assert_no_fail(result)
217+
self.assert_called_with(self.SLNOE, 'getAllObjects')

0 commit comments

Comments
 (0)