Debian Codegraph @

tests/test_cud.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright (C) 2019-2020 Matthias Klumpp <[email protected]>
4 #
5 # Licensed under the GNU Lesser General Public License Version 3
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation, either version 3 of the license, or
10 # (at your option) any later version.
11 #
12 # This software is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with this software. If not, see <http://www.gnu.org/licenses/>.
19
20 from debspawn.osbase import OSBase
21
22
23 def test_container_create_delete(gconfig, testing_container):
24 # the "default" container is created by a fixture.
25 # what we actually want to do here in future is create and
26 # delete containers with special settings
27 pass
28
29
30 def test_container_update(gconfig, testing_container):
31 '''Update a container'''
32
33 suite, arch, variant = testing_container
34 osbase = OSBase(gconfig, suite, arch, variant)
35 assert osbase.update()
36
37
38 def test_container_recreate(gconfig, testing_container):
39 '''Test recreating a container'''
40
41 suite, arch, variant = testing_container
42 osbase = OSBase(gconfig, suite, arch, variant)
43 assert osbase.recreate()