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:
parent
36b7e9cd0f
commit
198594b622
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue