Commit 10702ea5 authored by Jürg Billeter's avatar Jürg Billeter

tests: Update tests for changed date/time formatting

parent 1125ad20
...@@ -226,7 +226,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest): ...@@ -226,7 +226,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest):
self.assertEquals (len (result), 1) self.assertEquals (len (result), 1)
self.assertEquals (len (result[0]), 2) self.assertEquals (len (result[0]), 2)
self.assertEquals (int (result[0][0]), i) self.assertEquals (int (result[0][0]), i)
self.assertEquals (result[0][1], "2000-01-01T00:4%d:47.000Z" % (i)) self.assertEquals (result[0][1], "2000-01-01T00:4%d:47Z" % (i))
self.tracker.update (""" self.tracker.update ("""
DELETE { <test://instance-1> a rdfs:Resource. } DELETE { <test://instance-1> a rdfs:Resource. }
...@@ -257,7 +257,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest): ...@@ -257,7 +257,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest):
self.assertEquals (len (result), 1) self.assertEquals (len (result), 1)
self.assertEquals (len (result[0]), 2) self.assertEquals (len (result[0]), 2)
self.assertEquals (int (result[0][0]), i) self.assertEquals (int (result[0][0]), i)
self.assertEquals (result[0][1], "2000-01-01T00:4%d:47.000Z" % (i)) self.assertEquals (result[0][1], "2000-01-01T00:4%d:47Z" % (i))
self.tracker.update (""" self.tracker.update ("""
DELETE { <test://instance-1> a rdfs:Resource. } DELETE { <test://instance-1> a rdfs:Resource. }
......
...@@ -196,7 +196,7 @@ class PropertyRangeStringToDate (OntologyChangeTestTemplate): ...@@ -196,7 +196,7 @@ class PropertyRangeStringToDate (OntologyChangeTestTemplate):
# Check the value is there # Check the value is there
result = self.tracker.query ("SELECT ?o WHERE { <%s> test:a_string ?o . }" % (self.instance)) result = self.tracker.query ("SELECT ?o WHERE { <%s> test:a_string ?o . }" % (self.instance))
self.assertEquals (result[0][0], "2010-10-12T13:30:00.000Z") self.assertEquals (result[0][0], "2010-10-12T13:30:00Z")
class PropertyRangeDateToString (OntologyChangeTestTemplate): class PropertyRangeDateToString (OntologyChangeTestTemplate):
......
"http://example.org/ns#group2" "2009-12-05T00:00:00.000Z" "http://example.org/ns#msg5" "3" "http://example.org/ns#group2" "2009-12-05T00:00:00Z" "http://example.org/ns#msg5" "3"
"http://example.org/ns#group1" "2009-12-02T00:00:00.000Z" "http://example.org/ns#msg2" "2" "http://example.org/ns#group1" "2009-12-02T00:00:00Z" "http://example.org/ns#msg2" "2"
"http://example.org/ns#msg1" "2009-12-01T00:00:00.000Z" "http://example.org/ns#msg1" "2009-12-01T00:00:00Z"
"http://example.org/ns#msg2" "2009-12-02T00:00:00.000Z" "http://example.org/ns#msg2" "2009-12-02T00:00:00Z"
"http://example.org/ns#msg3" "2009-12-03T00:00:00.000Z" "http://example.org/ns#msg3" "2009-12-03T00:00:00Z"
"http://example.org/ns#msg4" "2009-12-04T00:00:00.000Z" "http://example.org/ns#msg4" "2009-12-04T00:00:00Z"
"http://example.org/ns#msg5" "2009-12-05T00:00:00.000Z" "http://example.org/ns#msg5" "2009-12-05T00:00:00Z"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment