Mocking the method of Exception

后端 未结 0 1860
孤独总比滥情好
孤独总比滥情好 2020-12-15 15:10

I have the following code need to test:

def methodToTest(self, context):
    try:
         someRpcMethod() # <------ raise RpcError
    except RpcError as          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题