# -*- coding: utf-8 -*-

import pytest


def test_app_title(app):
    """Simply tests if the default app title meets the expectations.

    Args:
      app (:class:`{{cookiecutter.app_class_name}}`): Default app instance

    Raises:
      AssertionError: If the title does not match
    """
    assert app.title == '{{cookiecutter.app_title}}'


@pytest.fixture
def carousel(app):
    """Fixture to get the carousel widget of the test app."""
    return app.carousel


def test_carousel(carousel):
    """Test for the carousel widget of the app checking the slides' names and
    the text of one of the slide labels.

    Args:
      carousel (:class:`Carousel`): Carousel widget of :class:`{{cookiecutter.app_class_name}}`

    Raises:
      AssertionError: If the first slide does not contain *Hello*
      AssertionError: If the names of the slides do not match the expectations
    """
    names = [slide.name for slide in carousel.slides]
    expected = ['hello', 'kivy', 'cookiecutterdozer', 'license', 'github']
    assert names == expected

@@ -344,131 +344,8 @@
 '%0A%0A%0A
-@pytest.fixture%0Adef carousel(app):%0A    %22%22%22Fixture to get the carousel widget of the test app.%22%22%22%0A    return app.carousel%0A%0A%0A
 def 
@@ -358,24 +358,19 @@
 arousel(
-carousel
+app
 ):%0A    %22
@@ -441,52 +441,8 @@
 ames
- and%0A    the text of one of the slide labels
 .%0A%0A 
@@ -456,24 +456,19 @@
 :%0A      
-carousel
+app
  (:class
@@ -473,158 +473,76 @@
 ss:%60
-Carousel%60): Carousel widget of :class:%60%7B%7Bcookiecutter.app_class_name%7D%7D%60%0A%0A    Raises:%0A      AssertionError: If the first slide does not contain *Hello*
+%7B%7Bcookiecutter.app_class_name%7D%7D%60): Default app instance%0A%0A    Raises:
 %0A   
@@ -662,16 +662,20 @@
 lide in 
+app.
 carousel

Remove the carousel fixture for the sake of simplicity