pep8speaks: Hello @mrbean-bremen! Thanks for submitting the PR.

 - In the file [`pydicom/dataelem.py`](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/dataelem.py), following are the PEP8 issues :

> [Line 203:17](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/dataelem.py#L203): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 242:80](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/dataelem.py#L242): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (80 > 79 characters)

 - In the file [`pydicom/tests/test_filewriter.py`](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/tests/test_filewriter.py), following are the PEP8 issues :

> [Line 367:80](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/tests/test_filewriter.py#L367): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (84 > 79 characters)
> [Line 369:80](https://github.com/pydicom/pydicom/blob/716b8687b557d5bb165a8178dadd01201a39e55d/pydicom/tests/test_filewriter.py#L369): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (84 > 79 characters)


diff --git a/doc/release-notes.rst b/doc/release-notes.rst
index 8d8889dc6..a9b32d0bb 100644
--- a/doc/release-notes.rst
+++ b/doc/release-notes.rst
@@ -4,6 +4,8 @@
 Release history
 ===============
 
+.. include:: whatsnew/v1.2.0.rst
+
 .. include:: whatsnew/v1.1.0.rst
 
 .. include:: whatsnew/v1.0.0.rst
diff --git a/doc/whatsnew/v1.2.0.rst b/doc/whatsnew/v1.2.0.rst
index 40f6b0a47..9ea652663 100644
--- a/doc/whatsnew/v1.2.0.rst
+++ b/doc/whatsnew/v1.2.0.rst
@@ -4,9 +4,17 @@ Version 1.2.0
 Changelog
 ---------
 
+
+Enhancements
+............
+
+* Added possibility to set byte strings as value for VRs that use only the
+  default character set (:issue:`624`)
+
 * ``DeferredDataElement`` class deprecated and will be removed in v1.3
   (:issue:`291`)
 
+
 Fixes
 .....
 
diff --git a/pydicom/dataelem.py b/pydicom/dataelem.py
index 1c4e8e4a9..c6b15e4b1 100644
--- a/pydicom/dataelem.py
+++ b/pydicom/dataelem.py
@@ -52,6 +52,11 @@ def isString(val):
     return isinstance(val, compat.string_types)
 
 
+def _is_bytes(val):
+    """Return True only in Python 3 if `val` is of type `bytes`."""
+    return False if in_py2 else isinstance(val, bytes)
+
+
 def isStringOrStringList(val):
     """Return True if `val` is a str or an iterable
        containing only strings."""
@@ -233,6 +238,14 @@ class DataElement(object):
 
     def _convert(self, val):
         """Convert `val` to an appropriate type for the element's VR."""
+
+        # If the value is a byte string and has a VR that can only be encoded
+        # using the default character repertoire, we convert it to a string
+        # here to allow for byte string input in these cases
+        if _is_bytes(val) and self.VR in (
+                'AE', 'AS', 'CS', 'DA', 'DS', 'DT', 'IS', 'TM', 'UI', 'UR'):
+            val = val.decode()
+
         if self.VR == 'IS':
             return pydicom.valuerep.IS(val)
         elif self.VR == 'DA' and config.datetime_conversion:

"bytes" representation for AE fields not supported
#### Description
Fields with VR of AE in datasets, should support getting a `bytes` object. Perhaps, this should be even the default representation thereof, as they truly support only ASCII and not real strings.
Instead, when attempting to serialize a dataset with a `bytes` value, an error is raised.

#### Steps/Code to Reproduce
```
ds = Dataset()
ds.StationAETitle = b"abc"
ds.is_implicit_VR = True
ds.is_little_endian = True
write_file("/tmp/a.dcm", ds)
```

#### Versions
python 3.6.4
pydicom 1.0.1
diff --git a/pydicom/tests/test_filewriter.py b/pydicom/tests/test_filewriter.py
index 4b943d651..6c0f11f82 100644
--- a/pydicom/tests/test_filewriter.py
+++ b/pydicom/tests/test_filewriter.py
@@ -316,7 +316,7 @@ class WriteDataElementTests(unittest.TestCase):
         self.check_data_element(data_elem, expected)
 
     def test_write_multi_DA(self):
-        data_elem = DataElement(0x0014407E, 'DA', ['20100101', '20101231'])
+        data_elem = DataElement(0x0014407E, 'DA', ['20100101', b'20101231'])
         expected = (b'\x14\x00\x7E\x40'  # tag
                     b'\x12\x00\x00\x00'  # length
                     b'20100101\\20101231 ')  # padded value
@@ -331,11 +331,13 @@ class WriteDataElementTests(unittest.TestCase):
                     b'\x06\x00\x00\x00'  # length
                     b'010203')  # padded value
         self.check_data_element(data_elem, expected)
+        data_elem = DataElement(0x00080030, 'TM', b'010203')
+        self.check_data_element(data_elem, expected)
         data_elem = DataElement(0x00080030, 'TM', time(1, 2, 3))
         self.check_data_element(data_elem, expected)
 
     def test_write_multi_TM(self):
-        data_elem = DataElement(0x0014407C, 'TM', ['082500', '092655'])
+        data_elem = DataElement(0x0014407C, 'TM', ['082500', b'092655'])
         expected = (b'\x14\x00\x7C\x40'  # tag
                     b'\x0E\x00\x00\x00'  # length
                     b'082500\\092655 ')  # padded value
@@ -350,21 +352,55 @@ class WriteDataElementTests(unittest.TestCase):
                     b'\x0E\x00\x00\x00'  # length
                     b'20170101120000')  # value
         self.check_data_element(data_elem, expected)
+        data_elem = DataElement(0x0008002A, 'DT', b'20170101120000')
+        self.check_data_element(data_elem, expected)
         data_elem = DataElement(0x0008002A, 'DT', datetime(2017, 1, 1, 12))
         self.check_data_element(data_elem, expected)
 
     def test_write_multi_DT(self):
         data_elem = DataElement(0x0040A13A, 'DT',
-                                ['20120820120804', '20130901111111'])
+                                ['20120820120804', b'20130901111111'])
         expected = (b'\x40\x00\x3A\xA1'  # tag
                     b'\x1E\x00\x00\x00'  # length
                     b'20120820120804\\20130901111111 ')  # padded value
         self.check_data_element(data_elem, expected)
+        data_elem = DataElement(
+            0x0040A13A, 'DT', u'20120820120804\\20130901111111')
+        self.check_data_element(data_elem, expected)
+        data_elem = DataElement(
+            0x0040A13A, 'DT', b'20120820120804\\20130901111111')
+        self.check_data_element(data_elem, expected)
+
         data_elem = DataElement(0x0040A13A, 'DT',
                                 [datetime(2012, 8, 20, 12, 8, 4),
                                  datetime(2013, 9, 1, 11, 11, 11)])
         self.check_data_element(data_elem, expected)
 
+    def test_write_ascii_vr_with_padding(self):
+        expected = (b'\x08\x00\x54\x00'  # tag
+                    b'\x0C\x00\x00\x00'  # length
+                    b'CONQUESTSRV ')  # padded value
+        data_elem = DataElement(0x00080054, 'AE', 'CONQUESTSRV')
+        self.check_data_element(data_elem, expected)
+        data_elem = DataElement(0x00080054, 'AE', b'CONQUESTSRV')
+        self.check_data_element(data_elem, expected)
+
+        expected = (b'\x08\x00\x62\x00'  # tag
+                    b'\x06\x00\x00\x00'  # length
+                    b'1.2.3\x00')  # padded value
+        data_elem = DataElement(0x00080062, 'UI', '1.2.3')
+        self.check_data_element(data_elem, expected)
+        data_elem = DataElement(0x00080062, 'UI', b'1.2.3')
+        self.check_data_element(data_elem, expected)
+
+        expected = (b'\x08\x00\x60\x00'  # tag
+                    b'\x04\x00\x00\x00'  # length
+                    b'REG ')
+        data_elem = DataElement(0x00080060, 'CS', 'REG')
+        self.check_data_element(data_elem, expected)
+        data_elem = DataElement(0x00080060, 'CS', b'REG')
+        self.check_data_element(data_elem, expected)
+
     def test_write_OD_implicit_little(self):
         """Test writing elements with VR of OD works correctly."""
         # VolumetricCurvePoints

pip install -e .[dev]
parse_log_pytest
pytest
pytest
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
-e git+https://github.com/pydicom/pydicom.git@20aa7acc2ec28d0c10974611d1f00a398e543de5#egg=pydicom
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: pydicom
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
prefix: /opt/conda/envs/pydicom

pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_DT pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_TM pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_ascii_vr_with_padding pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_multi_DA pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_multi_DT pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_multi_TM
pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raw_elements_preserved_implicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raw_elements_preserved_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_changed_character_set
pydicom/tests/test_filewriter.py::WriteFileTests::testCT pydicom/tests/test_filewriter.py::WriteFileTests::testJPEG2000 pydicom/tests/test_filewriter.py::WriteFileTests::testListItemWriteBack pydicom/tests/test_filewriter.py::WriteFileTests::testMR pydicom/tests/test_filewriter.py::WriteFileTests::testMultiPN pydicom/tests/test_filewriter.py::WriteFileTests::testRTDose pydicom/tests/test_filewriter.py::WriteFileTests::testRTPlan pydicom/tests/test_filewriter.py::WriteFileTests::testUnicode pydicom/tests/test_filewriter.py::WriteFileTests::test_write_double_filemeta pydicom/tests/test_filewriter.py::WriteFileTests::test_write_ffff_ffff pydicom/tests/test_filewriter.py::WriteFileTests::test_write_no_ts pydicom/tests/test_filewriter.py::WriteFileTests::test_write_removes_grouplength pydicom/tests/test_filewriter.py::WriteFileTests::testwrite_short_uid pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testCT pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testJPEG2000 pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testListItemWriteBack pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testMR pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testMultiPN pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testRTDose pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testRTPlan pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testUnicode pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::test_multivalue_DA pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::test_write_double_filemeta pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::test_write_ffff_ffff pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::test_write_no_ts pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::test_write_removes_grouplength pydicom/tests/test_filewriter.py::ScratchWriteDateTimeTests::testwrite_short_uid pydicom/tests/test_filewriter.py::WriteDataElementTests::test_empty_AT pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_DA pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_OD_explicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_OD_implicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_OL_explicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_OL_implicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_UC_explicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_UC_implicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_UN_implicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_UR_explicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_UR_implicit_little pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_empty_LO pydicom/tests/test_filewriter.py::WriteDataElementTests::test_write_unknown_vr_raises pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_lut_descriptor pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_overlay pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_data pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_representation_vm_one pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_representation_vm_three pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_sequence pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_waveform_bits_allocated pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_not_ambiguous pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_not_ambiguous_raw_data_element pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_correct_ambiguous_data_element pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_correct_ambiguous_raw_data_element pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_pixel_data_not_ow_or_ob pydicom/tests/test_filewriter.py::WriteAmbiguousVRTests::test_write_explicit_vr_big_endian pydicom/tests/test_filewriter.py::WriteAmbiguousVRTests::test_write_explicit_vr_little_endian pydicom/tests/test_filewriter.py::WriteAmbiguousVRTests::test_write_explicit_vr_raises pydicom/tests/test_filewriter.py::ScratchWriteTests::testImpl_LE_deflen_write pydicom/tests/test_filewriter.py::TestWriteToStandard::test_preamble_default pydicom/tests/test_filewriter.py::TestWriteToStandard::test_preamble_custom pydicom/tests/test_filewriter.py::TestWriteToStandard::test_no_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_none_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_bad_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_prefix pydicom/tests/test_filewriter.py::TestWriteToStandard::test_prefix_none pydicom/tests/test_filewriter.py::TestWriteToStandard::test_ds_changed pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_implicit_to_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_dataset pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_dataset_with_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_implicit_to_explicit_vr_using_destination pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_explicit_to_implicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_big_to_little_endian pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_little_to_big_endian pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_private_tag_vr_from_implicit_data pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_rgb_from_implicit_to_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_not_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_raises pydicom/tests/test_filewriter.py::TestWriteToStandard::test_media_storage_sop_class_uid_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_no_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raise_no_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_add_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_standard pydicom/tests/test_filewriter.py::TestWriteToStandard::test_commandset_no_written pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_bad_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_missing_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_group_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_group_length_updated pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_version pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_implementation_version_name_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_implementation_class_uid_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_filelike_position pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_filemeta pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_ds_unchanged pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_file_meta_unchanged pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_no_preamble pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_filemeta pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_custom pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_default pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_read_write_identical pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_bad_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_filelike_position pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_group_length_updated pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_meta_unchanged pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_missing_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_transfer_syntax_not_added pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_empty_value pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_list pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_singleton pydicom/tests/test_filewriter.py::TestWriteNumbers::test_exception pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_big_endian pydicom/tests/test_filewriter.py::TestWritePN::test_no_encoding_unicode pydicom/tests/test_filewriter.py::TestWritePN::test_no_encoding pydicom/tests/test_filewriter.py::TestWriteDT::test_format_dt pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_big_endian_correct_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_big_endian_incorrect_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_little_endian_correct_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_little_endian_incorrect_data
pydicom/dataelem.py doc/whatsnew/v1.2.0.rst doc/release-notes.rst
pydicom/dataelem.py doc/whatsnew/v1.2.0.rst doc/release-notes.rst