Example #1
0
 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'))
Example #2
0
 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'))
Example #3
0
 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'))
Example #4
0
 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'))
Example #5
0
 def test_empty_message(self):
     """Assert that an empty message results in False."""
     self.assertFalse(generic.user_package_filter(self.config, {}))
Example #6
0
 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))