1. i have a testdata.py with below
owner_account_detail = {'123': {'password':'xxx', 'value':['480186','67854']},
'456': {'password':'xxx', 'value':['877712']}}
2. I have a python library (nesteddictex.py) where i have funtions that will return len of the dictitionary
def get_dictlen(self,my_dict):
sortKeys = list(my_dict.keys())
return int(my_dict.__len__())
3. i have test1.txt is my robot txt file which I run using pybot test1.txt on command line
*** Settings ***
Documentation nesteddictex Test suite
Library nesteddictex
*** Variables ***
*** Test Cases ***
${r} = get dictlen arg=Testdata.owner_account_detail
log to console status1: ${r}
*** Keywords ***
Numbers Should Be Equal value value
when I run the above testcase it get AttributeError: 'unicode' object has no attribute 'keys'. please anyone can help me with one ?