def test_tag(self):
     """tag yields 200"""
     # make tag and we get a 200
     tag = Tag(slug='t')
     tag.save()
     r = self.client.get(reverse('omblog:tag', args=[tag.slug]))
     self.assertEqual(200, r.status_code)
    def test_multiple_tags(self):
        """Multiple tags don't cause 500 on views"""
        # make tags
        t1 = Tag(slug='a')
        t1.save()
        t2 = Tag(slug='a')
        t2.save()

        # get view and it is 200
        r = self.client.get(reverse('omblog:tag', args=[t2.slug]))
        self.assertEqual(200, r.status_code)