~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlscreens/tests/test_views.py

  • Committer: franku
  • Author(s): GunChleoc
  • Date: 2016-12-13 18:30:38 UTC
  • mfrom: (438.1.6 pyformat_util)
  • Revision ID: somal@arcor.de-20161213183038-5cgmvfh2fkgmoc1s
adding a script to run pyformat over the code base

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
###########
16
16
# Uploads #
17
17
###########
 
18
 
 
19
 
18
20
class TestWLScreens_IndexSite_ExceptCorrectResult(DjangoTest):
 
21
 
19
22
    def runTest(self):
20
23
        url = reverse('wlscreens_index')
21
24
        k = self.client.get(url)
22
25
 
23
 
        self.assertTemplateUsed(k,"wlscreens/index.html")
24
 
        self.assertTrue(k.context["categories"] is not None)
 
26
        self.assertTemplateUsed(k, 'wlscreens/index.html')
 
27
        self.assertTrue(k.context['categories'] is not None)
25
28
 
26
29
# TODO(sirver): figure out how to make templates simpler for tests so that this
27
30
# simple test does not depend on the whole stack.
34
37
        # c = self.client.get(url)
35
38
 
36
39
        # self.assertEqual(c.status_code, 404 )
37
 
 
38
 
 
39