Commit 414391b8 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added useful comments

parent bbf7536a
......@@ -263,6 +263,10 @@ class ListingTests(SeleniumSetUpTearDown):
class LookoutTests(SeleniumSetUpTearDown):
"""Tests all the user interactions pertaining to the models in the lookouts app."""
def setUp(self):
# make sure that a Julius Caesar Lookout doesn't already exist
return super(LookoutTests, self).setUp()
def tearDown(self):
# delete the George Mason Lookout
return super(LookoutTests, self).tearDown()
......@@ -32,4 +32,5 @@ class Lookout(TimeStampedModel):
class Meta:
ordering = ['isbn']
# a student can't create the same lookout twice
unique_together = ['owner', 'isbn']
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