Exemplo n.º 1
0
 def test_handler_filter_category_undefined(self):
     items = handler_filter_category(mock_category_1, Category.UNDEFINED,
                                     [Category.UNDEFINED])
     self.assertEqual(len(items), 1)
Exemplo n.º 2
0
 def test_handler_filter_category_games(self):
     items = handler_filter_category(mock_category_1, Category.GAMES,
                                     [Category.GAMES])
     self.assertEqual(len(items), 1)
Exemplo n.º 3
0
 def test_handler_filter_category_programs(self):
     items = handler_filter_category(mock_category_1, Category.PROGRAMS,
                                     [Category.PROGRAMS])
     self.assertEqual(len(items), 1)
Exemplo n.º 4
0
 def test_handler_filter_category_audiobooks(self):
     items = handler_filter_category(mock_category_1, Category.AUDIOBOOKS,
                                     [Category.AUDIOBOOKS])
     self.assertEqual(len(items), 1)
Exemplo n.º 5
0
 def test_handler_filter_category_musics(self):
     items = handler_filter_category(mock_category_1, Category.MUSICS,
                                     [Category.MUSICS])
     self.assertEqual(len(items), 1)
Exemplo n.º 6
0
 def test_handler_filter_category_cartoons(self):
     items = handler_filter_category(mock_category_1, Category.CARTOONS,
                                     [Category.CARTOONS])
     self.assertEqual(len(items), 1)
Exemplo n.º 7
0
 def test_handler_filter_category_tv_series(self):
     items = handler_filter_category(mock_category_1, Category.TV_SERIES,
                                     [Category.TV_SERIES])
     self.assertEqual(len(items), 1)
Exemplo n.º 8
0
 def test_handler_filter_category_films(self):
     items = handler_filter_category(mock_category_1, Category.FILMS,
                                     [Category.FILMS])
     self.assertEqual(len(items), 1)