# Test_Yum

Provides unit tests and examples for the <Yum> lens.

Summary

Test_Yum | Provides unit tests and examples for the <Yum> lens.
Augeas Tests |
Yum.lns | Check that we can parse an empty line, to fix test-save
Yum.lns | Issue #45: allow spaces around equals sign
Yum.lns | Issue #275: parse excludes as a list

### Augeas Tests

### Yum.lns

> test Yum.lns get "\n" = { }

Check that we can parse an empty line, to fix test-save

### Yum.lns

> test Yum.lns get "[rpmforge] name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge\n" = { "rpmforge" { "name" = "RHEL $releasever - RPMforge.net - dag" } { "baseurl" = "http://apt.sw.be/redhat/el6/en/$basearch/rpmforge" } }

Issue #45: allow spaces around equals sign

### Yum.lns

> test Yum.lns get "[epel] name=Extra Packages for Enterprise Linux 6 - $basearch exclude=ocs* clamav* " = { "epel" { "name" = "Extra Packages for Enterprise Linux 6 - $basearch" } { "exclude" = "ocs*" } { "exclude" = "clamav*" } }

Issue #275: parse excludes as a list

> test Yum.lns get "\n" = { }

Check that we can parse an empty line, to fix test-save
Close