33class Test__parse_options (unittest .TestCase ):
44
55 def _callFUT (self , args ):
6- from pkginfo .commandline import _parse_options
6+ from pkginfo2 .commandline import _parse_options
77 return _parse_options (args )
88
99 def test_empty (self ):
1010 import io
1111 import sys
12- from pkginfo .commandline import __doc__ as usage
12+ from pkginfo2 .commandline import __doc__ as usage
1313 firstline = usage .splitlines ()[0 ]
1414
1515 # parse_args emits "native" error output.
@@ -29,7 +29,7 @@ def test_nonempty(self):
2929class BaseTests (unittest .TestCase ):
3030
3131 def _getTargetClass (self ):
32- from pkginfo .commandline import Base
32+ from pkginfo2 .commandline import Base
3333 return Base
3434
3535 def _makeOne (self , options ):
@@ -66,7 +66,7 @@ def _no_output(self, simple, meta):
6666class SimpleTests (unittest .TestCase , _FormatterBase ):
6767
6868 def _getTargetClass (self ):
69- from pkginfo .commandline import Simple
69+ from pkginfo2 .commandline import Simple
7070 return Simple
7171
7272 def _makeOne (self , options ):
@@ -100,7 +100,7 @@ def test___call___w_skip_but_values_explicit_fields(self):
100100class SingleLineTests (unittest .TestCase , _FormatterBase ):
101101
102102 def _getTargetClass (self ):
103- from pkginfo .commandline import SingleLine
103+ from pkginfo2 .commandline import SingleLine
104104 return SingleLine
105105
106106 def _makeOne (self , options ):
@@ -131,7 +131,7 @@ def test___call__w_fields_w_list(self):
131131class CSVTests (unittest .TestCase , _FormatterBase ):
132132
133133 def _getTargetClass (self ):
134- from pkginfo .commandline import CSV
134+ from pkginfo2 .commandline import CSV
135135 return CSV
136136
137137 def _makeOne (self , options ):
@@ -161,7 +161,7 @@ def test___call__w_fields_w_list(self):
161161class INITests (unittest .TestCase , _FormatterBase ):
162162
163163 def _getTargetClass (self ):
164- from pkginfo .commandline import INI
164+ from pkginfo2 .commandline import INI
165165 return INI
166166
167167 def _makeOne (self , options ):
@@ -199,7 +199,7 @@ def test___call___w_fields_w_list(self):
199199class JSONtests (unittest .TestCase , _FormatterBase ):
200200
201201 def _getTargetClass (self ):
202- from pkginfo .commandline import JSON
202+ from pkginfo2 .commandline import JSON
203203 return JSON
204204
205205 def _makeOne (self , options ):
@@ -255,8 +255,8 @@ def test___call___output(self):
255255class Test_main (unittest .TestCase ):
256256
257257 def _callFUT (self , args , monkey = 'simple' ):
258- from pkginfo .commandline import main
259- from pkginfo .commandline import _FORMATTERS
258+ from pkginfo2 .commandline import main
259+ from pkginfo2 .commandline import _FORMATTERS
260260 before = _FORMATTERS [monkey ]
261261 dummy = _Formatter ()
262262 _FORMATTERS [monkey ] = lambda * options : dummy
@@ -267,7 +267,7 @@ def _callFUT(self, args, monkey='simple'):
267267 return dummy
268268
269269 def test_w_mising_dist (self ):
270- from pkginfo import commandline as MUT
270+ from pkginfo2 import commandline as MUT
271271 def _get_metadata (path_or_module , md_version ):
272272 self .assertEqual (path_or_module , 'foo' )
273273 self .assertEqual (md_version , None )
@@ -278,7 +278,7 @@ def _get_metadata(path_or_module, md_version):
278278 self .assertTrue (formatter ._finished )
279279
280280 def test_w_dist_wo_download_url (self ):
281- from pkginfo import commandline as MUT
281+ from pkginfo2 import commandline as MUT
282282 meta = _Meta (download_url = None )
283283 def _get_metadata (path_or_module , md_version ):
284284 self .assertEqual (path_or_module , '/path/to/foo' )
@@ -292,7 +292,7 @@ def _get_metadata(path_or_module, md_version):
292292 self .assertEqual (meta .download_url , 'http://example.com/foo' )
293293
294294 def test_w_dist_w_download_url (self ):
295- from pkginfo import commandline as MUT
295+ from pkginfo2 import commandline as MUT
296296 meta = _Meta (download_url = 'http://example.com/dist/foo' )
297297 def _get_metadata (path_or_module , md_version ):
298298 self .assertEqual (path_or_module , '/path/to/foo' )
0 commit comments