Exemplo n.º 1
0
 def test_view(self):
     request = self.factory.get('/')
     v = StyleGuideView.as_view()
     response = v(request)
     response.render()
     self.assertEqual(response.status_code, 200)
     self.assertContains(response, '<dt>@blue</dt>')
     self.assertContains(response, '<dd>darken(@linkColor, 15%)</dd>')
 def test_view(self):
     request = self.factory.get('/')
     v = StyleGuideView.as_view()
     response = v(request)
     response.render()
Exemplo n.º 3
0
from django.conf.urls.defaults import patterns, url
from styleguide.views import StyleGuideView

urlpatterns = patterns('',
    url(r'^$', StyleGuideView.as_view(), name='less.style_guide'),
)