Commit be5b27b2 authored by Michal Čihař's avatar Michal Čihař

Fix access to attribute

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 24101049
...@@ -210,8 +210,8 @@ class NewLangTest(ViewTestCase): ...@@ -210,8 +210,8 @@ class NewLangTest(ViewTestCase):
return self.create_po_new_base() return self.create_po_new_base()
def test_none(self): def test_none(self):
self.new_lang = 'none' self.subproject.new_lang = 'none'
self.save() self.subproject.save()
response = self.client.get( response = self.client.get(
reverse('subproject', kwargs=self.kw_subproject) reverse('subproject', kwargs=self.kw_subproject)
...@@ -219,8 +219,8 @@ class NewLangTest(ViewTestCase): ...@@ -219,8 +219,8 @@ class NewLangTest(ViewTestCase):
self.assertNotContains(response, 'New translation') self.assertNotContains(response, 'New translation')
def test_url(self): def test_url(self):
self.new_lang = 'url' self.subproject.new_lang = 'url'
self.save() self.subproject.save()
self.project.instructions = 'http://example.com/instructions' self.project.instructions = 'http://example.com/instructions'
self.project.save() self.project.save()
...@@ -231,8 +231,8 @@ class NewLangTest(ViewTestCase): ...@@ -231,8 +231,8 @@ class NewLangTest(ViewTestCase):
self.assertContains(response, 'http://example.com/instructions') self.assertContains(response, 'http://example.com/instructions')
def test_contact(self): def test_contact(self):
self.new_lang = 'contact' self.subproject.new_lang = 'contact'
self.save() self.subproject.save()
response = self.client.get( response = self.client.get(
reverse('subproject', kwargs=self.kw_subproject) reverse('subproject', kwargs=self.kw_subproject)
...@@ -257,8 +257,8 @@ class NewLangTest(ViewTestCase): ...@@ -257,8 +257,8 @@ class NewLangTest(ViewTestCase):
) )
def test_add(self): def test_add(self):
self.new_lang = 'add' self.subproject.new_lang = 'add'
self.save() self.subproject.save()
self.assertFalse( self.assertFalse(
self.subproject.translation_set.filter( self.subproject.translation_set.filter(
......
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