def test_updating_artist(self): """Tests that we can successfully update an artist's name """ simple_db.update_artist('Red', 'Redder') actual = simple_db.select_all_albums('Redder') expected = [('Until We Have Faces', 'Redder', '2/1/2011', 'Essential Records', 'CD')] self.assertEqual(expected, actual)
def test_updating_artist(self): """ Tests that we can successfully update an artist's name """ simple_db.update_artist('Red', 'Redder') actual = simple_db.select_all_albums('Redder') expected = [('Until We Have Faces', 'Redder', '2/1/2011', 'Essential Records', 'CD')] self.assertListEqual(expected, actual)
def test_updating_artist(self): """ Tests that we can successfully update an artist's name """ simple_db.update_artist('Anthrax', 'Anthrat') actual = simple_db.select_all_albums('Anthrat') expected = [('Among The Living', 'Anthrat', '1987')] self.assertListEqual(expected, actual)
def test_artist_does_not_exist(self): """ Test that an artist does not exist """ result = simple_db.select_all_albums('Redder') self.assertFalse(result)
def test_artist_does_not_exit(self): """ Test that an artist does not exist """ result = simple_db.select_all_albums('Redder') self.assertFalse(result)
def test_artist_does_not_exist(self): result = simple_db.select_all_albums('Redder') self.assertFalse(result)
def test_updating_artist(self): simple_db.update_artist('Red', 'Redder') actual = simple_db.select_all_albums('Redder') expected = [('Until We Have Faces', 'Redder', '2/1/2011', 'Essential Records', 'CD')] self.assertListEqual(expected, actual)