@@ -795,7 +795,7 @@ def test_DefaultProfile_Unmodified(self):
795
795
profile ['documentFormatting' ]['reportFontAttributes' ]
796
796
with self .assertRaises (KeyError ):
797
797
profile ['documentFormatting' ]['fontAttributeReporting' ]
798
-
798
+
799
799
def test_defaultProfile_reportFontAttributes_false (self ):
800
800
"""reportFontAttributes set to False."""
801
801
configString = """
@@ -806,7 +806,7 @@ def test_defaultProfile_reportFontAttributes_false(self):
806
806
upgradeConfigFrom_11_to_12 (profile )
807
807
self .assertEqual (profile ['documentFormatting' ]['reportFontAttributes' ], 'False' )
808
808
self .assertEqual (profile ['documentFormatting' ]['fontAttributeReporting' ], OutputMode .OFF .value )
809
-
809
+
810
810
def test_defaultProfile_reportFontAttributes_true (self ):
811
811
"""reportFontAttributes set to True."""
812
812
configString = """
@@ -840,7 +840,7 @@ def test_set_reportFontAttributes_false(self):
840
840
config ['reportFontAttributes' ] = False
841
841
self .assertEqual (config ['reportFontAttributes' ], False )
842
842
self .assertEqual (config ['fontAttributeReporting' ], OutputMode .OFF )
843
-
843
+
844
844
def test_set_reportFontAttributes_true (self ):
845
845
config = self .config
846
846
config ['reportFontAttributes' ] = True
@@ -872,6 +872,20 @@ def test_set_fontAttributeReporting_speechAndBraille(self):
872
872
self .assertEqual (config ['reportFontAttributes' ], True )
873
873
874
874
875
+ class Config_ConfigFlags_OutputMode (unittest .TestCase ):
876
+ def test_inSpeech (self ):
877
+ self .assertTrue (OutputMode .SPEECH .inSpeech )
878
+ self .assertTrue (OutputMode .SPEECH_AND_BRAILLE .inSpeech )
879
+ self .assertFalse (OutputMode .BRAILLE .inSpeech )
880
+ self .assertFalse (OutputMode .OFF .inSpeech )
881
+
882
+ def test_inBraille (self ):
883
+ self .assertTrue (OutputMode .BRAILLE .inBraille )
884
+ self .assertTrue (OutputMode .SPEECH_AND_BRAILLE .inBraille )
885
+ self .assertFalse (OutputMode .SPEECH .inBraille )
886
+ self .assertFalse (OutputMode .OFF .inBraille )
887
+
888
+
875
889
class Config_AggregatedSection_getitem (unittest .TestCase ):
876
890
def setUp (self ):
877
891
manager = MagicMock (ConfigManager ())
0 commit comments