Exemplo n.º 1
0
 def test_not_check_rpm_to_binaries(self):
     expected_binaries = "/usr/bin/fooupg,/bin/preupg"
     try:
         self.assertEqual(script_api.check_rpm_to(check_bin=expected_binaries), 0)
         self.assertTrue(False)
     except SystemExit:
         self.assertTrue(True)
Exemplo n.º 2
0
 def test_not_check_rpm_to(self):
     expected_rpms = "ffoobar,testbar"
     try:
         self.assertEqual(script_api.check_rpm_to(check_rpm=expected_rpms), 0)
         self.assertTrue(False)
     except SystemExit:
         self.assertTrue(True)
Exemplo n.º 3
0
 def test_not_check_rpm_to_binaries(self):
     expected_binaries = "/usr/bin/fooupg,/bin/preupg"
     try:
         self.assertEqual(
             script_api.check_rpm_to(check_bin=expected_binaries), 0)
         self.assertTrue(False)
     except SystemExit:
         self.assertTrue(True)
Exemplo n.º 4
0
 def test_not_check_rpm_to(self):
     expected_rpms = "ffoobar,testbar"
     try:
         self.assertEqual(script_api.check_rpm_to(check_rpm=expected_rpms),
                          0)
         self.assertTrue(False)
     except SystemExit:
         self.assertTrue(True)
Exemplo n.º 5
0
 def test_check_rpm_to_binaries(self):
     expected_binaries = "strings,nm"
     self.assertEqual(script_api.check_rpm_to(check_bin=expected_binaries),
                      0)
Exemplo n.º 6
0
 def test_check_rpm_to(self):
     expected_rpms = "foobar,testbar"
     self.assertEqual(script_api.check_rpm_to(check_rpm=expected_rpms), 0)
Exemplo n.º 7
0
 def test_check_rpm_to_binaries(self):
     expected_binaries = "strings,nm"
     self.assertEqual(script_api.check_rpm_to(check_bin=expected_binaries), 0)
Exemplo n.º 8
0
 def test_check_rpm_to(self):
     expected_rpms = "foobar,testbar"
     self.assertEqual(script_api.check_rpm_to(check_rpm=expected_rpms), 0)