-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when calling symget on a dead session
- Loading branch information
Sam Leeman-Munk
authored and
Sam Leeman-Munk
committed
Jan 8, 2024
1 parent
29199c9
commit cc18927
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
import saspy | ||
|
||
|
||
class TestSASViyaML(unittest.TestCase): | ||
|
||
def testSymgetOnDeadSession(self): | ||
sas = saspy.SASsession() | ||
|
||
results = sas.submit("endsas;") | ||
|
||
try: | ||
sas.SYSINFO() | ||
except ValueError as e: | ||
self.assertFalse(str(e)!="Failed to execute symexist. Your session may be dead.") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |