def test_metadata(self): """ Test the overridden metadata method in ISODistributor """ metadata = ISODistributor.metadata() expected_types = [TYPE_ID_RPM, TYPE_ID_SRPM, TYPE_ID_DRPM, TYPE_ID_ERRATA, TYPE_ID_DISTRO, TYPE_ID_PKG_CATEGORY, TYPE_ID_PKG_GROUP] self.assertEquals(metadata['id'], TYPE_ID_DISTRIBUTOR_EXPORT) self.assertEqual(set(expected_types), set(metadata['types']))
def test_metadata(self): metadata = ISODistributor.metadata() self.assertEquals(metadata["id"], TYPE_ID_DISTRIBUTOR_ISO) for type in [ TYPE_ID_RPM, TYPE_ID_SRPM, TYPE_ID_DRPM, TYPE_ID_ERRATA, TYPE_ID_DISTRO, TYPE_ID_PKG_CATEGORY, TYPE_ID_PKG_GROUP, ]: self.assertTrue(type in metadata["types"])