Commit 527f4b56 authored by Nicolas Joyard's avatar Nicolas Joyard

Add initial intro test

parent 3eb9d113
<div id="intro">
<h1 class="text-center"><span class="glyphicon glyphicon-eye-open"></span><br/>Political memory</h1>
<p class="lead text-center hidden-xs">What is Memopol ?</p>
<p class="text-justify hidden-xs">Political Memory is a tool designed by La Quadrature du Net to help citizens reach their representative and track their voting records on issues related to fundamental freedoms online.</p>
<div class="container-fluid hidden-xs">
<div class="row">
<div class="pull-right">
<a class="btn btn-default">More on our blog</a>
</div>
</div>
</div>
</div>
\ No newline at end of file
{
"status_code": 200
}
\ No newline at end of file
from django import test
from responsediff.test import ResponseDiffTestMixin
class NavigationPaneTest(ResponseDiffTestMixin, test.TestCase):
url = '/'
def selector_test(self, selector):
self.assertResponseDiffEmpty(test.Client().get(self.url), selector)
def test_intro(self):
self.selector_test('#intro')
{% load i18n %}
<h1 class="text-center"><span class="glyphicon glyphicon-eye-open"></span><br/>{% trans "Political memory" %}</h1>
<p class="lead text-center hidden-xs">{% trans "What is Memopol ?" %}</p>
<p class="text-justify hidden-xs">{% trans "Political Memory is a tool designed by La Quadrature du Net to help citizens reach their representative and track their voting records on issues related to fundamental freedoms online." %}</p>
<div class="container-fluid hidden-xs">
<div class="row">
<div class="pull-right">
<a class="btn btn-default">{% trans "More on our blog" %}</a>
<div id="intro">
<h1 class="text-center"><span class="glyphicon glyphicon-eye-open"></span><br/>{% trans "Political memory" %}</h1>
<p class="lead text-center hidden-xs">{% trans "What is Memopol ?" %}</p>
<p class="text-justify hidden-xs">{% trans "Political Memory is a tool designed by La Quadrature du Net to help citizens reach their representative and track their voting records on issues related to fundamental freedoms online." %}</p>
<div class="container-fluid hidden-xs">
<div class="row">
<div class="pull-right">
<a class="btn btn-default">{% trans "More on our blog" %}</a>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment