Use the configure_mock method on an instance. Or pass keyword arguments to the Mock class on creation. m.foo = 'bar' assert m.
確定! 回上一頁