<commit_before># coding=utf-8
from __future__ import absolute_import, division, print_function, \
  unicode_literals

from unittest import TestCase

from filters.test import BaseFilterTestCase
from iota import Iota
from iota.commands.extended.prepare_transfers import PrepareTransfersCommand
from test import MockAdapter


class PrepareTransfersRequestFilterTestCase(BaseFilterTestCase):
  filter_type = PrepareTransfersCommand(MockAdapter()).get_request_filter
  skip_value_check = True


class PrepareTransfersCommandTestCase(TestCase):
  def setUp(self):
    super(PrepareTransfersCommandTestCase, self).setUp()

    self.adapter = MockAdapter()

  def test_wireup(self):
    """
    Verify that the command is wired up correctly.
    """
    self.assertIsInstance(
      Iota(self.adapter).prepareTransfers,
      PrepareTransfersCommand,
    )<commit_msg>Stubbed out unit tests for `prepareTransfer`.<commit_after># coding=utf-8
from __future__ import absolute_import, division, print_function, \
  unicode_literals

from unittest import TestCase

from filters.test import BaseFilterTestCase
from iota import Iota
from iota.commands.extended.prepare_transfers import PrepareTransfersCommand
from test import MockAdapter


class PrepareTransfersRequestFilterTestCase(BaseFilterTestCase):
  filter_type = PrepareTransfersCommand(MockAdapter()).get_request_filter
  skip_value_check = True

  def test_pass_happy_path(self):
    """
    Request is valid.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_pass_compatible_types(self):
    """
    Request contains values that can be converted to the expected
    types.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_pass_optional_parameters_omitted(self):
    """
    Request omits optional parameters.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_empty(self):
    """
    Request is empty.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_unexpected_parameters(self):
    """
    Request contains unexpected parameters.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_seed_null(self):
    """
    ``seed`` is null.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_seed_wrong_type(self):
    """
    ``seed`` is not a TrytesCompatible value.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_seed_not_trytes(self):
    """
    ``seed`` contains invalid characters.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_transfers_wrong_type(self):
    """
    ``transfers`` is not an array.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_transfers_empty(self):
    """
    ``transfers`` is an array, but it is empty.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_transfers_contents_invalid(self):
    """
    ``transfers`` is a non-empty array, but it contains invalid values.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_change_address_wrong_type(self):
    """
    ``change_address`` is not a TrytesCompatible value.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_change_address_not_trytes(self):
    """
    ``change_address`` contains invalid characters.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_inputs_wrong_type(self):
    """
    ``inputs`` is not an array.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_inputs_empty(self):
    """
    ``inputs`` is an array, but it is empty.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')

  def test_fail_inputs_contents_invalid(self):
    """
    ``inputs`` is a non-empty array, but it contains invalid values.
    """
    # :todo: Implement test.
    self.skipTest('Not implemented yet.')


class PrepareTransfersCommandTestCase(TestCase):
  def setUp(self):
    super(PrepareTransfersCommandTestCase, self).setUp()

    self.adapter = MockAdapter()

  def test_wireup(self):
    """
    Verify that the command is wired up correctly.
    """
    self.assertIsInstance(
      Iota(self.adapter).prepareTransfers,
      PrepareTransfersCommand,
    )

  # :todo: Unit tests.
{'fraction_non_alphanumeric': 0.10826771653543307, 'fraction_numerical': 0.0004374453193350831, 'mean_word_length': 3.6238624873609706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7052307', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1378, 'n_words': 342}