예제 #1
0
    def test_brazil_case_classind(self):
        amo.tests.make_game(self.webapp, rated=False)
        self.webapp.set_content_ratings(
            {mkt.ratingsbodies.CLASSIND: mkt.ratingsbodies.CLASSIND_L})

        exclude_games.Command().handle()
        assert self._brazil_listed()
        assert not self._germany_listed()
예제 #2
0
    def test_germany_case_usk(self):
        amo.tests.make_game(self.webapp, rated=False)
        self.webapp.set_content_ratings(
            {mkt.ratingsbodies.USK: mkt.ratingsbodies.USK_18})

        exclude_games.Command().handle()
        assert self._germany_listed()
        assert not self._brazil_listed()
예제 #3
0
 def test_dont_exclude_non_game(self):
     exclude_games.Command().handle()
     assert self._brazil_listed()
     assert self._germany_listed()
예제 #4
0
    def test_dont_exclude_rated(self):
        amo.tests.make_game(self.webapp, rated=True)

        exclude_games.Command().handle()
        assert self._brazil_listed()
        assert self._germany_listed()
예제 #5
0
    def test_exclude_unrated(self):
        amo.tests.make_game(self.webapp, rated=False)

        exclude_games.Command().handle()
        assert not self._brazil_listed()
        assert not self._germany_listed()