def test_RetrievePublisherByGameId(self):
        ''' Validate basic retrieve works '''
        pub = Publisher(self.gdb).getPublisherForGame(6)

        self.assertTrue(
            pub == 'Stern',
            'Expected publisher for game with id 6 to be Stern, was {0}'.
            format(pub))
 def test_FilterPublishers_Region(self):
     rows = Publisher(self.gdb).getFilteredPublishers(0, 0, 0, 0, 0, 0, 'USA', '0 = 0')
     self.assertEquals(len(rows), 7)
 def test_FilterPublishers_Rating(self):
     rows = Publisher(self.gdb).getFilteredPublishers(0, 0, 0, 0, 0, 5, 0, '0 = 0')
     self.assertEquals(len(rows), 7)
 def test_FilterPublishers_MaxPlayers(self):
     rows = Publisher(self.gdb).getFilteredPublishers(0, 0, 0, 0, '2', 0, 0, '0 = 0')
     self.assertEquals(len(rows), 10)
 def test_FilterPublishers_Developer(self):
     rows = Publisher(self.gdb).getFilteredPublishers(0, 0, 0, 3, 0, 0, 0, '0 = 0')
     self.assertEquals(len(rows), 1)
 def test_FilterPublishers_Genre(self):
     rows = Publisher(self.gdb).getFilteredPublishers(0, 2, 0, 0, 0, 0, 0, '0 = 0')
     self.assertEquals(len(rows), 9)
 def test_FilterPublishers_RomCollection(self):
     rows = Publisher(self.gdb).getFilteredPublishers(1, 0, 0, 0, 0, 0, 0, '0 = 0')
     self.assertEquals(len(rows), 9)
 def test_RetrievePublisher(self):
     pub = Publisher(self.gdb).getPublisher(6)
     self.assertTrue(pub == 'Nintendo')