changeset 117:2833c1337dc0

Fix testcase for travel_dex_relocatable()
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 04 Aug 2011 19:12:49 +0800
parents c5f59bdbc916
children 7b537e0d8e7a
files paraspace/tests/dexfile_test.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/paraspace/tests/dexfile_test.py	Thu Aug 04 18:30:11 2011 +0800
+++ b/paraspace/tests/dexfile_test.py	Thu Aug 04 19:12:49 2011 +0800
@@ -111,12 +111,13 @@
 
     itr = _travel_dex_relocatable(dexroot)
     pathes = [v[2] for v in itr]
-    assert len(pathes) == 5
+    assert len(pathes) == 6
     assert '_DEX_TypeList' in pathes
     assert '_DEX_TypeList.num' in pathes
     assert '_DEX_TypeList.typeItems' in pathes
     assert '_DEX_TypeList.typeItems.items' in pathes
-    assert '_DEX_TypeList.typeItems.items.0' in pathes
+    assert '_DEX_TypeList_typeid' in pathes
+    assert '_DEX_TypeList_typeid.typeIdx' in pathes
     pass