Navigation Menu

Skip to content

Commit

Permalink
tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysobol committed Feb 29, 2012
1 parent 6803e1d commit 75b7283
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion testsobol/mainapp/tests.py
Expand Up @@ -38,7 +38,7 @@ class RequestViewTest(TestCase):
def test(self): def test(self):
page = self.client.get('/http/') page = self.client.get('/http/')
self.assertEqual(page.status_code, 200) self.assertEqual(page.status_code, 200)
self.assertTrue(bool(page.context['request'])) self.assertTrue(bool(page.context['custom_request']))


class SettingsContextTest(TestCase): class SettingsContextTest(TestCase):


Expand Down Expand Up @@ -99,3 +99,14 @@ def test(self):
page = self.client.get('/edit/') page = self.client.get('/edit/')
self.assertTrue(page.content.find('>Name:') > page.content.find('Last name:')) self.assertTrue(page.content.find('>Name:') > page.content.find('Last name:'))
self.assertTrue(page.content.find('Bio:') < page.content.find('Other')) self.assertTrue(page.content.find('Bio:') < page.content.find('Other'))


class Tag(TestCase):

def test(self):
fixtures = ['initial_data.json']

page = self.client.post('/accounts/login/', {'username': 'admin', 'password': 'admin'})

page = self.client.get('/')
self.assertTrue(page.content.find('<a href="/admin/auth/user/1/"') != -1 )

0 comments on commit 75b7283

Please sign in to comment.