Esempio n. 1
0
 def test_remove_steps(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     for song in SONGS:
         m.remove_songs([song], True)
         self._verify_model(m)
Esempio n. 2
0
 def test_remove_steps(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     for song in SONGS:
         m.remove_songs([song], True)
         self._verify_model(m)
Esempio n. 3
0
 def test_remove_songs_remove_rows(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     length = len(m)
     m.remove_songs(SONGS, True)
     self._verify_model(m)
     self.assertNotEqual(length, len(m))
     self.assertEqual(len(m), 0)
Esempio n. 4
0
 def test_remove_songs_keep_rows(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     length = len(m)
     m.remove_songs(SONGS, False)
     self._verify_model(m)
     self.assertEqual(length, len(m))
     self.assertFalse(m.get_songs([r.path for r in m]))
Esempio n. 5
0
 def test_remove_songs_remove_rows(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     length = len(m)
     m.remove_songs(SONGS, True)
     self._verify_model(m)
     self.assertNotEqual(length, len(m))
     self.assertEqual(len(m), 0)
Esempio n. 6
0
 def test_remove_songs_keep_rows(self):
     conf = PaneConfig("artist")
     m = PaneModel(conf)
     m.add_songs(SONGS)
     length = len(m)
     m.remove_songs(SONGS, False)
     self._verify_model(m)
     self.assertEqual(length, len(m))
     self.assertFalse(m.get_songs([r.path for r in m]))