Add test for fix

This commit is contained in:
Simon Hanna 2016-01-10 01:18:27 +01:00
parent 076cc57d39
commit 70e1f3926b
1 changed files with 8 additions and 0 deletions

View File

@ -81,3 +81,11 @@ class TestSongFormat(TestCase):
# THEN: Return all attributes that were specified
self.assertEquals(len(SongFormat.get(song_format, 'canDisable', 'availability')), 2,
"Did not return the correct number of attributes when retrieving multiple attributes at once")
def test_get_format_list_returns_ordered_list(self):
"""
Test that get_format_list() returns a list that is ordered
according to the order specified in SongFormat
"""
self.assertEquals(sorted(SongFormat.get_format_list()), SongFormat.get_format_list(),
"The list returned should be sorted according to the ordering in SongFormat")