diff options
| author | 2014-03-09 03:14:44 +0100 | |
|---|---|---|
| committer | 2014-03-09 03:14:44 +0100 | |
| commit | de1d7f85f5f67b269178ea05b7c59deb21ac1720 (patch) | |
| tree | 3125810eecb495e9ce216dd95561cd1dd3977235 /tests/test_command_init.py | |
| parent | c14a6f46d2a76a9c228b6c2543939315068fad5f (diff) | |
| parent | fa50632a9d87c3989566fed3e49c160a132e0d14 (diff) | |
Merge tag 'upstream/6.4.0'
Upstream version 6.4.0
Diffstat (limited to 'tests/test_command_init.py')
| -rw-r--r-- | tests/test_command_init.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_command_init.py b/tests/test_command_init.py index 04e7d5f..4332213 100644 --- a/tests/test_command_init.py +++ b/tests/test_command_init.py @@ -25,12 +25,12 @@ class CommandInitCallTest(unittest.TestCase): create_empty_site_patch = mock.patch( 'nikola.plugins.command.init.CommandInit.create_empty_site', self.create_empty_site) - self.patches = [copy_sample_site_patch, - create_configuration_patch, create_empty_site_patch] + self.patches = [copy_sample_site_patch, create_configuration_patch, + create_empty_site_patch] for patch in self.patches: patch.start() - self.init_commad = nikola.plugins.command.init.CommandInit() + self.init_command = nikola.plugins.command.init.CommandInit() def tearDown(self): for patch in self.patches: @@ -43,21 +43,21 @@ class CommandInitCallTest(unittest.TestCase): def test_init_default(self): for arguments in (dict(options={'demo': True}, args=['destination']), {}): - self.init_commad.execute(**arguments) + self.init_command.execute(**arguments) self.assertTrue(self.create_configuration.called) self.assertTrue(self.copy_sample_site.called) self.assertFalse(self.create_empty_site.called) def test_init_called_without_target(self): - self.init_commad.execute() + self.init_command.execute() self.assertFalse(self.create_configuration.called) self.assertFalse(self.copy_sample_site.called) self.assertFalse(self.create_empty_site.called) def test_init_empty_dir(self): - self.init_commad.execute(args=['destination']) + self.init_command.execute(args=['destination']) self.assertTrue(self.create_configuration.called) self.assertFalse(self.copy_sample_site.called) |
