def test_no_tags(self):
     """Verify new entry has no tags."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     self.assertEqual([], list(obj.tags.all()))
 def test_representation(self):
     """Verify the object representation is not None or an empty string."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     self.assertTrue(unicode(obj))
 def test_default_comment(self):
     """Verify that comment defaults to an empty string if not set."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     self.assertEqual('', obj.comment)
 def test_default_count(self):
     """Verify that count defaults to zero if not set."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     self.assertEqual(0, obj.count)
 def test_default_include(self):
     """Verify that include defaults to True if not set."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     self.assertTrue(obj.include)
 def test_none_description(self):
     """Verify that description defaults to an empty string if not set."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory(),
         description=None
     )
     obj.save()
     self.assertEqual('', obj.description)
 def test_default_description(self):
     """Verify that description defaults to an empty string if not set."""
     obj = Entry(
         checklist=ChecklistFactory(),
         species=SpeciesFactory()
     )
     obj.save()
     Entry.objects.create(
         checklist=obj.checklist,
         species=obj.species,
     )
     self.assertEqual('', obj.description)