diff options
Diffstat (limited to 'test/test-network-registration')
-rwxr-xr-x | test/test-network-registration | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-network-registration b/test/test-network-registration index 5d3f75e3..9410ae6e 100755 --- a/test/test-network-registration +++ b/test/test-network-registration @@ -47,11 +47,11 @@ if __name__ == "__main__": print("Status is: '%s', Operator Name is: '%s'" %\ (props['Status'], props['Name'])) - if props.has_key('LocationAreaCode') and props.has_key('CellId'): + if 'LocationAreaCode' in props and 'CellId' in props: print("Location: '%d', Cell: '%d'" %\ (props['LocationAreaCode'], props['CellId'])) - if props.has_key('Technology'): + if 'Technology' in props: print("Technology: '%s'" % (props['Technology'])) try: |