def test_process_lines(self):
        lines = [
            "#!/usr/bin/python",
            "# -*- coding: utf-8 -*-",
            "",
            "# Copyright © 2007-2009, 2011 John Doe <*****@*****.**>",
        ]

        copyrightupdate.process_lines(lines)

        self.assertEquals(lines, [
            "#!/usr/bin/python",
            "# -*- coding: utf-8 -*-",
            "",
            "# Copyright © 2007-2009, 2011, 2013 John Doe <*****@*****.**>",
        ])
    def test_process_lines(self):
        lines = [
            "#!/usr/bin/python",
            "# -*- coding: utf-8 -*-",
            "",
            "# Copyright © 2007-2009, 2011 John Doe <*****@*****.**>",
        ]

        copyrightupdate.process_lines(lines)

        self.assertEquals(lines, [
            "#!/usr/bin/python",
            "# -*- coding: utf-8 -*-",
            "",
            "# Copyright © 2007-2009, 2011, 2013 John Doe <*****@*****.**>",
        ])
def update_copyright():
    if has_imported:
        copyrightupdate.process_lines(vim.current.buffer, 5, copyrightupdate.load_config_regex())
def update_copyright():
    if has_imported:
        copyrightupdate.process_lines(vim.current.buffer, 5,
                                      copyrightupdate.load_config_regex())