Esempio n. 1
0
 def test_time_data(self):
     self.time_index = self.model.createIndex(0, PLAYLIST_HEADER_DATA.index('Time'))
     time = self.model.data(self.time_index, Qt.DisplayRole)
     self.assertEquals("3:36", time)
Esempio n. 2
0
 def setUp(self):
     self.model = playlist_model(mpd_mock)
     self.first_row = self.model.createIndex(0, PLAYLIST_HEADER_DATA.index('Title'))
     self.second_row = self.model.createIndex(1, PLAYLIST_HEADER_DATA.index('Title'))