| 1 |
from kiwi.repository.template.apt import PackageManagerTemplateAptGet |
| 2 |
|
| 3 |
|
| 4 |
class TestPackageManagerTemplateAptGet: |
| 5 |
def setup(self): |
| 6 |
self.apt = PackageManagerTemplateAptGet() |
| 7 |
|
| 8 |
def setup_method(self, cls): |
| 9 |
self.setup() |
| 10 |
|
| 11 |
def test_get_host_template(self): |
| 12 |
assert self.apt.get_host_template().substitute( |
| 13 |
apt_shared_base='/var/cache/kiwi/apt-get', |
| 14 |
unauthenticated='true' |
| 15 |
) |
| 16 |
|
| 17 |
def test_get_image_template(self): |
| 18 |
assert self.apt.get_image_template().substitute( |
| 19 |
unauthenticated='true' |
| 20 |
) |
| 21 |
|
| 22 |
def test_get_host_template_with_exclude_docs(self): |
| 23 |
assert self.apt.get_host_template(exclude_docs=True).substitute( |
| 24 |
apt_shared_base='/var/cache/kiwi/apt-get', |
| 25 |
unauthenticated='true' |
| 26 |
) |
| 27 |
|
| 28 |
def test_get_image_template_with_exclude_docs(self): |
| 29 |
assert self.apt.get_image_template(exclude_docs=True).substitute( |
| 30 |
unauthenticated='true' |
| 31 |
) |