zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04435
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 350: Add test case to reproduce "Inserting event with two subjects with the same
------------------------------------------------------------
revno: 350
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Thu 2011-12-29 14:22:53 +0100
message:
Add test case to reproduce "Inserting event with two subjects with the same
URI breaks the following event" (LP: #909708).
modified:
test/dbus/remote-test.py
--
lp:zeitgeist
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'test/dbus/remote-test.py'
--- test/dbus/remote-test.py 2011-12-04 22:58:25 +0000
+++ test/dbus/remote-test.py 2011-12-29 13:22:53 +0000
@@ -224,6 +224,12 @@
results = self.findEventsForTemplatesAndWait([], num_events=3)
self.assertEquals(3, len(results))
+ def testInsertWithDuplicateSubject(self):
+ events = parse_events("test/data/three_events.js")
+ events[0].subjects.append(list(events[0].subjects[0]))
+ ids = self.insertEventsAndWait(events)
+ self.assertEquals(3, len(set(ids)))
+
class ZeitgeistRemoteFindEventIdsTest(testutils.RemoteTestCase):
"""
Test cases with basic tests for FindEventIds.