def test_list_movie_sessions(self): response = self.client.get('/api/movie-sessions/') assert_that( response, has_properties(status_code=HTTP_200_OK, data=is_page_of( self.movie_session_100_90_match, self.movie_session_400_120_match, count=2, )))
def test_list_halls(self): response = self.client.get('/api/halls/') assert_that( response, has_properties(status_code=HTTP_200_OK, data=is_page_of( self.hall_100_match, self.hall_400_match, count=6, )))
def test_list_movies(self): response = self.client.get('/api/movies/') assert_that( response, has_properties(status_code=HTTP_200_OK, data=is_page_of( self.movie_unused_match, self.movie_90_match, self.movie_120_match, count=3, )))
def test_list_tickets(self): response = self.client.get('/api/tickets/') assert_that( response, has_properties( status_code=HTTP_200_OK, data=is_page_of( self.ticket_100_90_match, self.ticket_400_120_match, count=2, ), ))