PIM testing: fix target session checking

The recent change which introduced checking of the target session only
worked if the entries were listed in the "right" (= target-config
entry last) order. Don't reply on that, instead check for the one new entry
that we should find and use that.
This commit is contained in:
Patrick Ohly 2014-07-22 15:40:09 +02:00
parent 36b7e9cd0f
commit 198594b622
1 changed files with 2 additions and 1 deletions

View File

@ -875,7 +875,8 @@ XDG root.
(not session in targetsessions):
newsessions.append(session)
self.assertTrue(newsessions)
self.assertEqual([session], newsessions)
self.assertEqual(len(newsessions), 1)
session = newsessions[0]
targetsessions.extend(newsessions)
config = ConfigParser.ConfigParser()
content = '[fake]\n' + open(os.path.join(session, 'status.ini')).read()