def METHOD_NAME(self, logger_mock, load_subscription_mock):
    cmd = mock.MagicMock()
    cmd.cli_ctx = DummyCli()
    sub1 = {'state': 'Enabled'}
    sub2 = {'state': 'Overdued'}
    load_subscription_mock.return_value = [sub1, sub2]
    # list all
    self.assertEqual(2, len(list_subscriptions(cmd, all=True)))
    self.assertTrue(not logger_mock.warning.called)
    # list only enabled one
    result = list_subscriptions(cmd)
    self.assertEqual(1, len(result))
    self.assertEqual('Enabled', result[0]['state'])
    logger_mock.warning.assert_called_once_with(mock.ANY)