~cbjchen/charms/trusty/neutron-gateway/metadata-api-config-fix

« back to all changes in this revision

Viewing changes to unit_tests/test_quantum_utils.py

  • Committer: james.page at ubuntu
  • Date: 2015-04-23 08:14:44 UTC
  • Revision ID: james.page@ubuntu.com-20150423081444-ujrksgm58nftoh26
[trivial] Fixup missing patching of os.remove which causes unit_test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
778
778
        ]
779
779
        self.assertEquals(write_file.call_args_list, expected)
780
780
 
 
781
    @patch('os.remove')
781
782
    @patch.object(quantum_utils, 'git_src_dir')
782
783
    @patch.object(quantum_utils, 'render')
783
784
    @patch('os.path.join')
787
788
    @patch('shutil.copyfile')
788
789
    @patch('shutil.copytree')
789
790
    def test_git_post_install(self, copytree, copyfile, rmtree, symlink,
790
 
                              exists, join, render, git_src_dir):
 
791
                              exists, join, render, git_src_dir, remove):
791
792
        projects_yaml = openstack_origin_git
792
793
        join.return_value = 'joined-string'
793
794
        quantum_utils.git_post_install(projects_yaml)