diff options
Diffstat (limited to 'tools/layoutlib/rename_font/test.py')
-rwxr-xr-x | tools/layoutlib/rename_font/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/rename_font/test.py b/tools/layoutlib/rename_font/test.py index b0b69d8..2ffddf4 100755 --- a/tools/layoutlib/rename_font/test.py +++ b/tools/layoutlib/rename_font/test.py @@ -33,10 +33,11 @@ class MyTest(unittest.TestCase): tree = etree.parse(ttx_path) root = tree.getroot() name_tag = root.find('name') - [f_name, f_version] = build_font.get_font_info(name_tag) + fonts = build_font.get_font_info(name_tag) shutil.rmtree(srcdir) shutil.rmtree(destdir) - self.assertEqual(f_name, "Roboto-Regular1200310") + self.assertEqual(fonts[0].family, "Roboto1200310") + self.assertEqual(fonts[0].fullname, "Roboto1200310 Regular") |