[tracker] functional-tests: Updated test cases for writeback



commit ed624ddc90eed7ccf29800c1e5e6cef076d87297
Author: Amit Jain <ext-amit 1 jain nokia com>
Date:   Thu Apr 1 11:16:56 2010 +0200

    functional-tests: Updated test cases for writeback

 tests/functional-tests/writeback-tc.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/functional-tests/writeback-tc.py b/tests/functional-tests/writeback-tc.py
index 175173f..5d752f1 100644
--- a/tests/functional-tests/writeback-tc.py
+++ b/tests/functional-tests/writeback-tc.py
@@ -489,7 +489,7 @@ class writeback(TestWriteback):
                 	insert = """
 				DELETE {?file nmm:exposureTime ?val }
 				WHERE { ?file nmm:exposureTime ?val ;nie:url <%s> } 
-				INSERT {?file nmm:exposureTime '1.44' } 
+				INSERT {?file nmm:exposureTime '44' } 
 				WHERE { ?file nie:url <%s> }
                 		""" %(uri, uri)
 			print insert
@@ -499,7 +499,7 @@ class writeback(TestWriteback):
 			result=commands.getoutput(EXTRACT + ' -f' +' ' + uri +' | grep nmm:exposureTime')
 			print result
                 	value=result.split()
-			if (result.find('nmm:exposureTime')!=-1)  and (value[1]=='1.44') :
+			if (result.find('nmm:exposureTime')!=-1)  and (value[1]=='44') :
 				print "property is set"
                 	else:
 				print "property is NOT set"
@@ -671,7 +671,7 @@ class writeback(TestWriteback):
                 	insert = """
 				DELETE {?file nmm:focalLength ?val }
 				WHERE { ?file nmm:focalLength ?val ;nie:url <%s> } 
-				INSERT {?file nmm:focalLength '1.44' } 
+				INSERT {?file nmm:focalLength '44' } 
 				WHERE { ?file nie:url <%s> }
                 		""" %(uri, uri)
 			print insert
@@ -681,7 +681,7 @@ class writeback(TestWriteback):
 			result=commands.getoutput(EXTRACT + ' -f' +' ' + uri +' | grep nmm:focalLength')
 			print result
                 	value=result.split()
-			if (result.find('nmm:focalLength')!=-1)  and (value[1]=='1.44') :
+			if (result.find('nmm:focalLength')!=-1)  and (value[1]=='44') :
 				print "property is set"
                 	else:
 				print "property is NOT set"
@@ -716,7 +716,7 @@ class writeback(TestWriteback):
                 	insert = """
 				DELETE {?file nmm:isoSpeed ?val }
 				WHERE { ?file nmm:isoSpeed ?val ;nie:url <%s> } 
-				INSERT {?file nmm:isoSpeed '1.44' } 
+				INSERT {?file nmm:isoSpeed '44' } 
 				WHERE { ?file nie:url <%s> }
                 		""" %(uri, uri)
 			print insert
@@ -726,7 +726,7 @@ class writeback(TestWriteback):
 			result=commands.getoutput(EXTRACT + ' -f' +' ' + uri +' | grep nmm:isoSpeed')
 			print result
                 	value=result.split()
-			if (result.find('nmm:isoSpeed')!=-1)  and (value[1]=='1.44') :
+			if (result.find('nmm:isoSpeed')!=-1)  and (value[1]=='44') :
 				print "property is set"
                 	else:
 				print "property is NOT set"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]