Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def test_artist_does_not_exist(self):
     """
     Test that an artist does not exist
     """
     result = simple_db.select_all_albums('Redder')
     self.assertFalse(result)
Ejemplo n.º 5
0
 def test_artist_does_not_exit(self):
     """ Test that an artist does not exist """
     result = simple_db.select_all_albums('Redder')
     self.assertFalse(result)
Ejemplo n.º 6
0
 def test_artist_does_not_exist(self):
     result = simple_db.select_all_albums('Redder')
     self.assertFalse(result)
Ejemplo n.º 7
0
 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)