Exemplo n.º 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'))
Exemplo n.º 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'))
Exemplo n.º 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'))
Exemplo n.º 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'))
Exemplo n.º 5
0
 def test_empty_message(self):
     """Assert that an empty message results in False."""
     self.assertFalse(generic.user_package_filter(self.config, {}))
Exemplo n.º 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))