Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Added test for OrganisationView
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Sep 29, 2016
1 parent 090cc09 commit d2f9384
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lizard_auth_server/tests/test_views_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,17 @@ def test_exiting_user_duplicate_email(self):
form.cleaned_data = self.user_data
result = self.view.form_valid(form)
self.assertEquals(200, result.status_code)


class TestOrganisationsView(TestCase):

def test_smoke(self):
client = Client()
result = client.get(
reverse('lizard_auth_server.api_v2.start'))
self.assertEquals(200, result.status_code)

def test_result(self):
factories.OrganisationF(name="Signalmanufaktur Neuwitz")
response = self.client.get('/api2/organisations/')
self.assertIn('Neuwitz', str(response.content))

0 comments on commit d2f9384

Please sign in to comment.