Esempio n. 1
0
def test_view_presentation(test_app):
    """Test the view of a presentation."""
    for index, presentation in bobslide.list_presentations():
        html = test_app.get('/presentation/view/%d/%s' % (index, presentation)).data.decode('utf-8')
        assert '<h1>%s</h1>' % presentation in html
        assert 'Close' in html
        assert 'Ordered' not in html
Esempio n. 2
0
def test_view_presentation(test_app):
    """Test the view of a presentation."""
    for index, presentation in bobslide.list_presentations():
        html = test_app.get('/presentation/view/%d/%s' % (index, presentation))
        html = html.data.decode('utf-8')
        assert '<h1>%s</h1>' % presentation in html
        assert 'Close' in html
        assert 'Ordered' not in html
Esempio n. 3
0
def test_lists():
    """Test list of presentations and list of themes."""
    assert bobslide.list_presentations() == [(0, 'Bonbons'), (0, 'Bulles'),
                                             (0, 'Sweets')]
    assert bobslide.list_themes() == [(0, 'Noir'), (0, 'Rose')]
Esempio n. 4
0
def test_lists():
    """Test list of presentations and list of themes."""
    assert bobslide.list_presentations() == [
        (0, 'Bonbons'), (0, 'Bulles'), (0, 'Sweets')]
    assert bobslide.list_themes() == [(0, 'Noir'), (0, 'Rose')]