1
# Copyright 2013 Canonical Ltd.
2
from django.core.urlresolvers import reverse
3
from django.conf import settings
6
from django.test import TestCase
10
from bzrviews.helpers import get_bzr_revision
14
class BzrViewsTestCase(TestCase):
16
def test_get_bzr_revno(self):
18
If we get the bzr revno view, we should get the version of the software
21
response = self.client.get(reverse("bzr_revno"))
22
self.assertEqual(200, response.status_code)
23
self.assertEqual(str(get_bzr_revision()), response.content)