Changed the test checking the return value of a sql function to
use a function which does not require testing data to be added to the
db.
---
 backend/server/test/unit-test/rhnSQL/test_1.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/server/test/unit-test/rhnSQL/test_1.py 
b/backend/server/test/unit-test/rhnSQL/test_1.py
index 75b5b5a..7336cbb 100644
--- a/backend/server/test/unit-test/rhnSQL/test_1.py
+++ b/backend/server/test/unit-test/rhnSQL/test_1.py
@@ -50,10 +50,10 @@ class Tests1(unittest.TestCase):
 
     def test_function_1(self):
         "Tests function calls"
-        p = rhnSQL.Function("rhn_entitlements.get_server_entitlement",
-            rhnSQL.types.STRING())
-        ret = p(1000102174)
-        self.failUnless(isinstance(ret, types.StringType))
+        p = rhnSQL.Function("logging.get_log_id",
+            rhnSQL.types.NUMBER())
+        ret = p()
+        self.failUnless(isinstance(ret, types.FloatType))
 
     def _run_stproc(self):
         p = rhnSQL.Procedure("create_new_org")
-- 
1.8.4

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to