unittest-A return interface B as a result of the interface parameters (global variable)

A global variable is provided at the interface with the Examples:

globals () [ "a"] = "A use case returns the result"

B interface using global variables used in the examples:

b = globals()["a"]

Get the current position of all global variables: print (globals ())

 

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11305003.html