@@ -67,6 +67,7 @@ def test_context():
6767 # Check that this value is reset after the exiting the context.
6868 assert mpl .rcParams [PARAM ] == 'gray'
6969
70+
7071def test_context_dict ():
7172 ORIGINAL = 'gray'
7273 VALUE_OTHER = 'blue'
@@ -75,6 +76,7 @@ def test_context_dict():
7576 assert mpl .rcParams [PARAM ] == VALUE_OTHER
7677 assert mpl .rcParams [PARAM ] == ORIGINAL
7778
79+
7880def test_context_dictname1 ():
7981 # Test dict after style name where dict modifies the same parameter.
8082 ORIGINAL = 'gray'
@@ -85,6 +87,7 @@ def test_context_dictname1():
8587 assert mpl .rcParams [PARAM ] == VALUE_OTHER
8688 assert mpl .rcParams [PARAM ] == ORIGINAL
8789
90+
8891def test_context_dictname2 ():
8992 # Test dict before style name where dict modifies the same parameter.
9093 ORIGINAL = 'gray'
@@ -95,6 +98,7 @@ def test_context_dictname2():
9598 assert mpl .rcParams [PARAM ] == VALUE
9699 assert mpl .rcParams [PARAM ] == ORIGINAL
97100
101+
98102def test_context_dictname3 ():
99103 # Test dict after style name where dict modifies the a different parameter.
100104 ORIGINAL = 'gray'
@@ -110,6 +114,7 @@ def test_context_dictname3():
110114 assert mpl .rcParams [PARAM ] == ORIGINAL
111115 assert mpl .rcParams [PARAM_OTHER ] == (not VALUE_OTHER )
112116
117+
113118if __name__ == '__main__' :
114119 from numpy import testing
115120 testing .run_module_suite ()
0 commit comments