Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
timster committed Apr 14, 2014
1 parent 9bfb239 commit a2d925e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions photos/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def test_location(self):
"""
# create invalid location, display form again
result = self.ajax_post(reverse('location_create'), {'name': ''})
self.assertTrue('html' in result)

# create valid location, redirects
result = self.ajax_post(reverse('location_create'), {'name': 'test location'})
Expand Down Expand Up @@ -77,6 +78,7 @@ def test_person(self):
"""
# create invalid person, display form again
result = self.ajax_post(reverse('person_create'), {'name': ''})
self.assertTrue('html' in result)

# create valid person, redirects
result = self.ajax_post(reverse('person_create'), {'name': 'test person'})
Expand Down Expand Up @@ -122,6 +124,7 @@ def test_album(self):
"""
# create invalid album, display form again
result = self.ajax_post(reverse('album_create'), {'name': ''})
self.assertTrue('html' in result)

# create valid album, redirects
result = self.ajax_post(reverse('album_create'), {'name': 'test album'})
Expand Down

0 comments on commit a2d925e

Please sign in to comment.