def test_list(self):
        """ Verify the endpoint returns a list of all program types. """
        LevelTypeFactory.create_batch(4)
        expected = LevelType.objects.all()
        with self.assertNumQueries(6):
            response = self.client.get(self.list_path)

        assert response.status_code == 200
        assert response.data['results'] == self.serialize_level_type(expected, many=True)