Exemplo n.º 1
0
    def test_queue_load_shortcut_with_scroll_top(self):
        """Test that the queue_load shortcut queues a client load:scrolltop notification for the specified path."""
        v = ViewState(MagicMock())
        nc = NotificationCentre(v)

        nc.queue_client_notification = MagicMock()
        nc.queue_load('test.controller', scroll_top=True)
        nc.queue_client_notification.assert_called_with('load:scroll_top', 'test.controller')