Пример #1
0
 def test_code_imports(self):
     """Test utils.codify.code_imports"""
     out = "from __future__ import unicode_literals"
     out += "  # Only for python2.7 and save_as unicode filename\n"
     out += 'import pydicom\n'
     out += 'from pydicom.dataset import Dataset\n'
     out += 'from pydicom.sequence import Sequence'
     assert code_imports() == out
Пример #2
0
 def test_code_imports(self):
     """Test utils.codify.code_imports"""
     out = "from __future__ import unicode_literals"
     out += "  # Only for python2.7 and save_as unicode filename\n"
     out += 'import pydicom\n'
     out += 'from pydicom.dataset import Dataset\n'
     out += 'from pydicom.sequence import Sequence'
     assert code_imports() == out
Пример #3
0
 def test_code_imports(self):
     """Test utils.codify.code_imports"""
     out = 'import pydicom\n'
     out += 'from pydicom.dataset import Dataset, FileMetaDataset\n'
     out += 'from pydicom.sequence import Sequence'
     assert out == code_imports()
Пример #4
0
 def test_code_imports(self):
     """Test utils.codify.code_imports"""
     out = 'import pydicom\n'
     out += 'from pydicom.dataset import Dataset\n'
     out += 'from pydicom.sequence import Sequence'
     assert code_imports() == out