示例#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