def test_delete_sticky(self, mock_upd):
     cmd.delete_sticky(self.ctx, self.sticky)
     self.assertTrue(mock_upd.called, "upd not called")
 def test_delete_sticky(self, mock_upd):
     cmd.delete_sticky(self.ctx, self.sticky)
     self.assertTrue(mock_upd.called, "upd not called")
     self.assertTrue(self.ctx.device.delete_stickiness.called)
     mock_upd.assert_called_once_with(self.ctx.conf, self.sticky['id'],
                                      self.sticky)