blob: ed2e007e5e9203f1a13d818c8b562fb7c8554004 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# This file is part of curtin. See LICENSE file for copyright and license info.
from aptsources.sourceslist import SourceEntry
from . import VMBaseClass
from .releases import base_vm_classes as relbase
class TestPythonApt(VMBaseClass):
"""TestPythonApt - apt sources manipulation with python{,3}-apt"""
test_type = 'config'
conf_file = "examples/tests/apt_source_custom.yaml"
def test_python_apt(self):
"""test_python_apt - Ensure the python-apt package is available"""
line = 'deb http://us.archive.ubuntu.com/ubuntu/ hirsute main'
self.assertEqual(line, str(SourceEntry(line)))
class XenialTestPythonApt(relbase.xenial, TestPythonApt):
__test__ = True
class BionicTestPythonApt(relbase.bionic, TestPythonApt):
__test__ = True
class FocalTestPythonApt(relbase.focal, TestPythonApt):
__test__ = True
class JammyTestPythonApt(relbase.jammy, TestPythonApt):
__test__ = True
# vi: ts=4 expandtab syntax=python
|