import pytest from obsapi.repoflags import RepoFlags xml1 = """ Test project for obsapi unit tests x86_64 x86_64 """ xml2 = """ Example from Kernel Module Packages Manual """ flag_types = ['build', 'publish', 'useforbuild', 'debuginfo'] def test_flag_types(): repoflags = RepoFlags(xml2) flag_types = repoflags.flag_types assert len(flag_types) == 3 assert 'build' in flag_types assert 'useforbuild' in flag_types assert 'debuginfo' in flag_types