@@ -141,6 +141,10 @@ def it_can_change_its_sort_order(self, priority_set_fixture):
141141 style .priority = value
142142 assert style ._element .xml == expected_xml
143143
144+ def it_knows_whether_its_unhide_when_used (self , unhide_get_fixture ):
145+ style , expected_value = unhide_get_fixture
146+ assert style .unhide_when_used == expected_value
147+
144148 def it_can_delete_itself_from_the_document (self , delete_fixture ):
145149 style , styles , expected_xml = delete_fixture
146150 style .delete ()
@@ -267,6 +271,17 @@ def type_get_fixture(self, request):
267271 style = BaseStyle (element (style_cxml ))
268272 return style , expected_value
269273
274+ @pytest .fixture (params = [
275+ ('w:style' , False ),
276+ ('w:style/w:unhideWhenUsed' , True ),
277+ ('w:style/w:unhideWhenUsed{w:val=0}' , False ),
278+ ('w:style/w:unhideWhenUsed{w:val=1}' , True ),
279+ ])
280+ def unhide_get_fixture (self , request ):
281+ style_cxml , expected_value = request .param
282+ style = BaseStyle (element (style_cxml ))
283+ return style , expected_value
284+
270285
271286class Describe_CharacterStyle (object ):
272287
0 commit comments