@@ -132,10 +132,10 @@ def test_narrow_to_stream(
132132 controller .model .narrow = []
133133 controller .model .index = index_stream
134134 controller .view .message_view = mocker .patch ("urwid.ListBox" )
135- controller .model .stream_dict = {
135+ controller .model ._subscribed_streams = {
136136 stream_id : general_stream ,
137137 }
138- controller .model .stream_dict [stream_id ].update (
138+ controller .model ._subscribed_streams [stream_id ].update (
139139 {
140140 "color" : "#ffffff" ,
141141 "name" : stream_name ,
@@ -191,10 +191,10 @@ def test_narrow_to_topic(
191191 controller .model .index = index_multiple_topic_msg
192192 controller .model .stream_id = initial_stream_id
193193 controller .view .message_view = mocker .patch ("urwid.ListBox" )
194- controller .model .stream_dict = {
194+ controller .model ._subscribed_streams = {
195195 stream_id : general_stream ,
196196 }
197- controller .model .stream_dict [stream_id ].update (
197+ controller .model ._subscribed_streams [stream_id ].update (
198198 {
199199 "color" : "#ffffff" ,
200200 "name" : stream_name ,
@@ -267,10 +267,10 @@ def test_narrow_to_all_messages(
267267 controller .view .message_view = mocker .patch ("urwid.ListBox" )
268268 controller .model .user_email = "some@email"
269269 controller .model .user_id = 1
270- controller .model .stream_dict = {
270+ controller .model ._subscribed_streams = {
271271 205 : general_stream ,
272272 }
273- controller .model .stream_dict [205 ].update (
273+ controller .model ._subscribed_streams [205 ].update (
274274 {
275275 "color" : "#ffffff" ,
276276 }
@@ -323,10 +323,10 @@ def test_narrow_to_all_starred(
323323 # FIXME: Expand upon is_muted_topic().
324324 mocker .patch (MODEL + ".is_muted_topic" , return_value = False )
325325 controller .model .user_email = "some@email"
326- controller .model .stream_dict = {
326+ controller .model ._subscribed_streams = {
327327 205 : general_stream ,
328328 }
329- controller .model .stream_dict [205 ].update (
329+ controller .model ._subscribed_streams [205 ].update (
330330 {
331331 "color" : "#ffffff" ,
332332 }
@@ -357,10 +357,10 @@ def test_narrow_to_all_mentions(
357357 mocker .patch (MODEL + ".is_muted_topic" , return_value = False )
358358 controller .model .user_email = "some@email"
359359 controller .model .user_id = 1
360- controller .model .stream_dict = {
360+ controller .model ._subscribed_streams = {
361361 205 : general_stream ,
362362 }
363- controller .model .stream_dict [205 ].update (
363+ controller .model ._subscribed_streams [205 ].update (
364364 {
365365 "color" : "#ffffff" ,
366366 }
0 commit comments