def test_namespaces(self): """Assert that a message with a namespaced package works correctly.""" # ralph owns the php module self.assertTrue( generic.user_package_filter(self.config, self.module_msg, fasnick='ralph'))
def test_different_namespaces(self): """Assert packages with the same name in a different namespace results in False.""" # remi owns the php RPM, but not the module. self.assertFalse( generic.user_package_filter(self.config, self.module_msg, fasnick='remi'))
def test_matching_packages(self): """Assert that a message with matching packages results in True.""" self.assertTrue( generic.user_package_filter(self.config, self.rpm_msg, fasnick='besser82'))
def test_no_matching_packages(self): """Assert that a message with no matching packages results in False.""" self.assertFalse( generic.user_package_filter(self.config, self.rpm_msg, fasnick='jcline'))
def test_empty_message(self): """Assert that an empty message results in False.""" self.assertFalse(generic.user_package_filter(self.config, {}))
def test_no_fasnick(self): """Assert if no fasnick is specified, False is returned.""" self.assertFalse(generic.user_package_filter(self.config, self.rpm_msg))