python/ovs/ovsuuid: Fix behavior of UUID.from_json() with no symbol table.
authorBen Pfaff <blp@nicira.com>
Mon, 28 Feb 2011 23:33:08 +0000 (15:33 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 10 Mar 2011 19:23:58 +0000 (11:23 -0800)
commitfdba672899fe192cb8c646d5b6d6d9260f42904d
tree24b0c8a3d38fd8f2503ca7f761feba34fc828280
parentc36cf65edac28ccd7d2681521a651c35c8b2453e
python/ovs/ovsuuid: Fix behavior of UUID.from_json() with no symbol table.

UUID.from_json(['named-uuid', 'x'], None) should raise an error about
invalid syntax, but instead it was raising a TypeError because it would
try to evaluate "'x' not in None".  This fixes the problem and adds a test.
python/ovs/ovsuuid.py
tests/ovsdb-data.at