You don't need to mock and patch stuff here. Just set up initial conditions so that adding the widget will push it onto the new row and assert on `dashboard.rows` and `dashboard.last_row_width`. Also, this test fails on my system and it isn't obvious why that happens.