File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,15 @@ def getCommand(self):
104104 """
105105 return self .__command
106106
107+ def getCommandPlain (self ):
108+ """
109+ Get Command used in this request in plain text
110+ """
111+ tmp = ''
112+ for key , val in self .__command .items ():
113+ tmp += "%s = %s\n " % (key , val )
114+ return tmp
115+
107116 def getCurrentPageNumber (self ):
108117 """
109118 Get Page Number of current List Query
Original file line number Diff line number Diff line change @@ -40,6 +40,15 @@ def test_responsemethods():
4040 r = R (RP .serialize (h ))
4141 assert r .getFirstRecordIndex () == 0
4242
43+ # #.getCommandPlain()
44+ r = R ("" , {
45+ "COMMAND" : "QueryDomainOptions" ,
46+ "DOMAIN0" : "example.com" ,
47+ "DOMAIN1" : "example.net"
48+ })
49+ expected = "COMMAND = QueryDomainOptions\n DOMAIN0 = example.com\n DOMAIN1 = example.net\n "
50+ assert r .getCommandPlain () == expected
51+
4352 # #.getColumns()
4453 r = R (rtm .getTemplate ('listP0' ).getPlain ())
4554 cols = r .getColumns ()
You can’t perform that action at this time.
0 commit comments