Module Import alias Import alias ImportFrom alias alias Import alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore TupleLoad Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Str Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad Str Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad TupleLoad Str Str Str Str TupleLoad Str Str Num Str Str Str Str Str TupleLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad Str Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad Str Str Str Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Dict Str Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Num NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Num Dict NameLoad Num Dict Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Num Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad TupleLoad Str Str Str Str BinOpAdd NameLoad TupleLoad Str Str ListLoad TupleLoad Str Str Str BinOpAdd NameLoad TupleLoad Str Str Num TupleLoad Str BinOpAdd NameLoad TupleLoad Str Str Str Str TupleLoad Str Str Str Str BinOpAdd NameLoad TupleLoad Str Str ListLoad TupleLoad Str Str Str BinOpAdd NameLoad TupleLoad Str Str Num TupleLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A sys N/A mock mock call ANY N/A erppeek _common XmlRpcTestCase TestInteract N/A XmlRpcTestCase N/A N/A server_version 6.1 N/A startup_calls N/A N/A call ANY db ANY None verbose ANY db.server_version N/A call ANY db ANY None verbose ANY N/A call ANY common ANY None verbose ANY N/A call ANY object ANY None verbose ANY N/A call ANY report ANY None verbose ANY N/A call ANY wizard ANY None verbose ANY db.list setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestInteract self setUp N/A N/A N/A N/A N/A N/A mock patch dict sys.modules N/A readline None start N/A N/A N/A N/A N/A mock patch erppeek.Client.connect wraps N/A N/A erppeek Client connect start N/A N/A N/A N/A N/A mock patch erppeek.Client.login wraps N/A N/A erppeek Client login start N/A N/A N/A N/A N/A mock patch erppeek.Client._set_interactive wraps N/A N/A erppeek Client _set_interactive start N/A N/A self interact N/A N/A N/A N/A mock patch erppeek._interact wraps N/A erppeek _interact start N/A N/A self infunc N/A N/A N/A N/A mock patch code.InteractiveConsole.raw_input start N/A N/A N/A N/A N/A mock patch erppeek.main.__defaults__ N/A N/A self interact start N/A test_main N/A N/A self N/A N/A N/A env_tuple N/A http://127.0.0.1:8069 database usr None N/A N/A N/A N/A N/A mock patch sys.argv new N/A erppeek --env demo start N/A read_config N/A N/A N/A N/A mock patch erppeek.read_config return_value env_tuple start N/A getpass N/A N/A N/A N/A mock patch getpass.getpass return_value password start N/A N/A N/A N/A N/A self service db list return_value N/A database N/A N/A N/A N/A N/A self service common login return_value 17 N/A N/A N/A N/A N/A self service object execute side_effect TypeError N/A N/A N/A self infunc side_effect N/A client
 model
 client.login('gaspard')
 23 + 19
 N/A EOFError Finished N/A N/A N/A erppeek main N/A N/A N/A self assertEqual N/A sys ps1 demo >>>  N/A N/A N/A self assertEqual N/A sys ps2 demo ...  N/A expected_calls N/A N/A self startup_calls N/A N/A common.login database usr password N/A object.execute database 17 password ir.model.access check res.users write N/A common.login database gaspard password N/A N/A N/A self assertCalls expected_calls N/A N/A N/A self assertEqual N/A getpass call_count 2 N/A N/A N/A self assertEqual N/A read_config call_count 1 N/A N/A N/A self assertEqual N/A N/A self interact call_count 1 N/A outlines N/A N/A N/A N/A N/A self stdout popvalue splitlines N/A N/A N/A self assertSequenceEqual N/A outlines N/A -5 N/A Logged in as 'usr' <Client 'http://127.0.0.1:8069#database'> <bound method Client.model of <Client 'http://127.0.0.1:8069#database'>> Logged in as 'gaspard' 42 N/A N/A N/A self assertOutput stderr [A

 N/A test_no_database N/A N/A self N/A N/A N/A env_tuple N/A http://127.0.0.1:8069 missingdb usr None N/A N/A N/A N/A N/A mock patch sys.argv new N/A erppeek --env demo start N/A read_config N/A N/A N/A N/A mock patch erppeek.read_config return_value env_tuple start N/A N/A N/A N/A N/A self service db list return_value N/A database N/A N/A N/A self infunc side_effect N/A client
 model
 client.login('gaspard')
 N/A EOFError Finished N/A N/A N/A erppeek main N/A expected_calls N/A self startup_calls N/A N/A N/A self assertCalls expected_calls N/A N/A N/A self assertEqual N/A read_config call_count 1 N/A outlines N/A N/A N/A N/A N/A self stdout popvalue splitlines N/A N/A N/A self assertSequenceEqual N/A outlines N/A -3 N/A Error: Database 'missingdb' does not exist: ['database'] <Client 'http://127.0.0.1:8069#()'> Error: Not connected N/A N/A N/A self assertOutput stderr ANY N/A test_invalid_user_password N/A N/A self N/A N/A N/A env_tuple N/A http://127.0.0.1:8069 database usr passwd N/A N/A N/A N/A N/A mock patch sys.argv new N/A erppeek --env demo start N/A N/A N/A N/A N/A mock patch os.environ new N/A LANG fr_FR.UTF-8 start N/A N/A N/A N/A N/A mock patch erppeek.read_config return_value env_tuple start N/A N/A N/A N/A N/A mock patch getpass.getpass return_value x start N/A N/A N/A N/A N/A self service db list return_value N/A database N/A N/A N/A N/A N/A self service common login side_effect N/A 17 None N/A N/A N/A N/A N/A self service object execute side_effect N/A 42 N/A TypeError 42 N/A N/A N/A N/A self infunc side_effect N/A client.model('res.company')
 client.login('gaspard')
 client.model('res.company')
 N/A EOFError Finished N/A N/A N/A erppeek main N/A usr17 N/A object.execute database 17 passwd N/A expected_calls N/A N/A self startup_calls N/A N/A common.login database usr passwd N/A usr17 N/A ir.model search N/A N/A model like res.company N/A usr17 N/A ir.model read 42 N/A model N/A usr17 N/A ir.model.access check res.users write N/A common.login database gaspard x N/A usr17 N/A ir.model search N/A N/A model like res.company N/A usr17 N/A ir.model read 42 N/A model N/A N/A N/A self assertCalls expected_calls N/A outlines N/A N/A N/A N/A N/A self stdout popvalue splitlines N/A N/A N/A self assertSequenceEqual N/A outlines N/A -4 N/A Logged in as 'usr' Model not found: res.company Error: Invalid username or password Model not found: res.company N/A N/A N/A self assertOutput stderr ANY N/A N/A