"""Unit tests for the release artist model.""" from artist.models import release_artist def test_to_dict_properties(): """Test that the expected properties are being returned.""" new_release_artist = release_artist.ReleaseArtist( release_artist_id=1, release_id=5, artist_name='Bob', role='Singer') assert new_release_artist.to_dict() == { 'id': new_release_artist.release_artist_id, 'name': new_release_artist.artist_name, 'role': new_release_artist.role}