summaryrefslogtreecommitdiff
path: root/scripts/run_general_tests.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2014-10-23 11:33:58 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:22 -0700
commita445d33ef3a80707c741d1d6e51152ef6df67de1 (patch)
tree6edc224b8fa5c6260648a5ceee592efd790cf42e /scripts/run_general_tests.py
parent890560275ea274b567f9755887c6441f94a9cf08 (diff)
Move test for sound copyright from Android-specific to general.
Diffstat (limited to 'scripts/run_general_tests.py')
-rwxr-xr-xscripts/run_general_tests.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/run_general_tests.py b/scripts/run_general_tests.py
index 0785b4e..687bdec 100755
--- a/scripts/run_general_tests.py
+++ b/scripts/run_general_tests.py
@@ -5,6 +5,7 @@ import glob
import unittest
from fontTools import ttLib
+from nototools import coverage
from nototools import font_data
@@ -33,6 +34,20 @@ class TestItalicAngle(unittest.TestCase):
expected_angle = 0.0
self.assertEqual(post_table.italicAngle, expected_angle)
+class TestCharacterCoverage(unittest.TestCase):
+ """Tests character coverage."""
+
+ def setUp(self):
+ _, self.fonts = load_fonts()
+
+ def test_inclusion_of_sound_recording_copyright(self):
+ """Tests that sound recording copyright symbol is in the fonts."""
+ for font in self.fonts:
+ charset = coverage.character_set(font)
+ self.assertIn(
+ 0x2117, charset, # SOUND RECORDING COPYRIGHT
+ 'U+2117 not found in %s.' % font_data.font_name(font))
+
if __name__ == '__main__':
unittest.main()