~james-w/udd/management-commands

« back to all changes in this revision

Viewing changes to udd/tests/test_mass_import.py

  • Committer: James Westby
  • Date: 2011-12-13 21:09:15 UTC
  • mfrom: (555.1.1 drop-cricket)
  • mto: This revision was merged to the branch mainline in revision 560.
  • Revision ID: james.westby@canonical.com-20111213210915-mfx5hktfoivb94hk
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from udd import tests
 
2
 
 
3
from udd.scripts import mass_import
 
4
 
 
5
 
 
6
class TestImporter(tests.TestCaseWithConfig):
 
7
 
 
8
    def test_expanded_import_command(self):
 
9
        imp = mass_import.Importer(mass_import.create_logger(), 'foo', '12',
 
10
                                   _command='import-package {package}')
 
11
        self.assertEquals(['import-package', 'foo'], imp.args)