コード例 #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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #6
0
 def test_artist_does_not_exist(self):
     result = simple_db.select_all_albums('Redder')
     self.assertFalse(result)
コード例 #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)