Home | Trees | Indices | Help |
---|
|
1 # 2 # Uncomplicated VM Builder 3 # Copyright (C) 2007-2009 Canonical Ltd. 4 # 5 # See AUTHORS for list of contributors 6 # 7 # This program is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License version 3, as 9 # published by the Free Software Foundation. 10 # 11 # This program is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public License 17 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # 19 # Tests, tests, tests, and more tests 20 21 import logging 22 import unittest 23 24 import VMBuilder 25 26 from VMBuilder.plugins.ubuntu.distro import Ubuntu 27 from VMBuilder.exception import VMBuilderUserError 28 from VMBuilder import set_console_loglevel 294032 set_console_loglevel(logging.INFO)3335 'Building Ubuntu VMs with an invalid suite raises UserError' 36 37 ubuntu = Ubuntu() 38 ubuntu.set_setting('suite', 'foo') 39 self.assertRaises(VMBuilderUserError, ubuntu.preflight_check)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 16 14:11:30 2011 | http://epydoc.sourceforge.net |