old_contents: # encoding: utf-8
  # ---------------------------------------------------------------------------
  #  Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc.
  #  Distributed under the terms of the BSD License.  See COPYING.rst.
  # ---------------------------------------------------------------------------
  
  
  import unittest
  import six
  
  from distarray.localapi import format as fmt
  
  
  class TestMagic(unittest.TestCase):
  
      def test_magic_0(self):
          expected = six.b('\x93DARRY\x03\x02')
  
          prefix = six.b('\x93DARRY')
          major = 3
          minor = 2
  
          result = fmt.magic(major=major, minor=minor, prefix=prefix)
          self.assertEqual(result, expected)
  
new_contents: # encoding: utf-8
  # ---------------------------------------------------------------------------
  #  Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc.
  #  Distributed under the terms of the BSD License.  See COPYING.rst.
  # ---------------------------------------------------------------------------
  
  
  import unittest
  import six
  
  from distarray.localapi import format as fmt
  
  
  class TestMagic(unittest.TestCase):
  
      def test_magic_0(self):
          expected = six.b('\x93DARRY\x03\x02')
  
          prefix = six.b('\x93DARRY')
          major = 3
          minor = 2
  
          result = fmt.magic(major=major, minor=minor, prefix=prefix)
          self.assertEqual(result, expected)
  
      def test_magic_1(self):
          expected = six.b('\x93NUMPY\x01\x00')
  
          prefix = six.b('\x93NUMPY')
          major = 1
          minor = 0
  
          result = fmt.magic(major=major, minor=minor, prefix=prefix)
          self.assertEqual(result, expected)
  
subject: Add another test.