old_contents: import numpy as np
  
  from neupy.utils import preformat_value
  
  from base import BaseTestCase
  
  
  class UtilsTestCase(BaseTestCase):
      def test_preformat_value(self):
          def my_func():
              pass
  
          class MyClass(object):
              pass
  
          self.assertEqual('my_func', preformat_value(my_func))
          self.assertEqual('MyClass', preformat_value(MyClass))
  
          expected = ['my_func', 'MyClass', 1]
          actual = preformat_value((my_func, MyClass, 1))
          np.testing.assert_array_equal(expected, actual)
  
          expected = ['my_func', 'MyClass', 1]
          actual = preformat_value([my_func, MyClass, 1])
          np.testing.assert_array_equal(expected, actual)
  
          expected = sorted(['my_func', 'MyClass', 'x'])
          actual = sorted(preformat_value({my_func, MyClass, 'x'}))
          np.testing.assert_array_equal(expected, actual)
  
          self.assertEqual(1, preformat_value(1))
  
          expected = (3, 2)
          actual = preformat_value(np.ones((3, 2)))
          np.testing.assert_array_equal(expected, actual)
  
          expected = (1, 2)
          actual = preformat_value(np.matrix([[1, 1]]))
          np.testing.assert_array_equal(expected, actual)
  
      # def test_shuffle(self):
      #     input_data = np.arange(10)
      #     shuffeled_data = shuffle(input_data, input_data)
      #
      #     np.testing.assert_array_equal(*shuffeled_data)
  
new_contents: import numpy as np
  
  from neupy.utils import preformat_value
  from neupy.network.utils import shuffle
  
  from base import BaseTestCase
  
  
  class UtilsTestCase(BaseTestCase):
      def test_preformat_value(self):
          def my_func():
              pass
  
          class MyClass(object):
              pass
  
          self.assertEqual('my_func', preformat_value(my_func))
          self.assertEqual('MyClass', preformat_value(MyClass))
  
          expected = ['my_func', 'MyClass', 1]
          actual = preformat_value((my_func, MyClass, 1))
          np.testing.assert_array_equal(expected, actual)
  
          expected = ['my_func', 'MyClass', 1]
          actual = preformat_value([my_func, MyClass, 1])
          np.testing.assert_array_equal(expected, actual)
  
          expected = sorted(['my_func', 'MyClass', 'x'])
          actual = sorted(preformat_value({my_func, MyClass, 'x'}))
          np.testing.assert_array_equal(expected, actual)
  
          self.assertEqual(1, preformat_value(1))
  
          expected = (3, 2)
          actual = preformat_value(np.ones((3, 2)))
          np.testing.assert_array_equal(expected, actual)
  
          expected = (1, 2)
          actual = preformat_value(np.matrix([[1, 1]]))
          np.testing.assert_array_equal(expected, actual)
  
      def test_shuffle(self):
          input_data = np.arange(10)
          shuffeled_data = shuffle(input_data, input_data)
  
          np.testing.assert_array_equal(*shuffeled_data)
  
subject: Test shuffle function.