~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/tests/test_mainviews.py

  • Committer: Rick Harding
  • Author(s): Richard Harding
  • Date: 2012-12-06 12:26:06 UTC
  • mfrom: (68.1.4 makefile)
  • Revision ID: rick.harding@canonical.com-20121206122606-rakq2xa0ve9xmuns
Add a Makefile to build/run/test.

This is very hacky. It sets up a virtualenv with things installed and running,
but does it with symlinks and other hacks. These will be cleaned up as we move
forward. This moves some things into python packages and pulls from pypi,
however we can replace this with buildout and a download-cache in a follow up
branch.

It also adds an initial test to make sure that the `make test` command is
working correctly. It's a hollow test to be replaced later on.

R=hazmat
CC=
https://codereview.appspot.com/6870064

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from charmworld.tests import WebTestBase
 
2
 
 
3
 
 
4
class TestBaseViews(WebTestBase):
 
5
 
 
6
    def test_homeview(self):
 
7
        """Make sure the home view renders correctly."""
 
8
        resp = self.app.get(
 
9
            '/',
 
10
            status=200)
 
11
 
 
12
        body = resp.body
 
13
        self.assertIn("Juju Charms", body)