Python code example 'Get all permitted attributes of a mock object' for the ... class C(): def get_val(): return 1 mock = Mock(spec=C()) print dir(mock) ...
確定! 回上一頁