Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94a6a5 commit 30031b5Copy full SHA for 30031b5
1 file changed
lib/matplotlib/tests/test_font_manager.py
@@ -31,6 +31,20 @@ def test_font_priority():
31
assert cmap[8729] == 30
32
33
34
+def test_ttflist_weight():
35
+ assert all(isinstance(f.weight, six.string_types)
36
+ for f in fontManager.ttflist)
37
+
38
39
+def test_score_weight():
40
+ assert (0 ==
41
+ fontManager.score_weight("regular", "regular") ==
42
+ fontManager.score_weight("bold", "bold") <
43
+ fontManager.score_weight("normal", "regular") ==
44
+ fontManager.score_weight(400, 400) <
45
+ fontManager.score_weight("normal", "bold"))
46
47
48
def test_json_serialization():
49
# on windows, we can't open a file twice, so save the name and unlink
50
# manually...
0 commit comments