'Tests questions/dashboard/metrics view'

def test_stats(self):

    p = ProductFactory()
    t = TopicFactory(title='Websites', slug='websites', product=p)
    QuestionFactory(title=u'cupcakes', content=u'Cupcakes    rock!', created=(datetime.now() - timedelta(days=1)), topic=t)
    self.refresh()
    response = self.client.get(reverse('questions.metrics'))
    eq_(200, response.status_code)
    assert ('    data-graph="[' in response.content)
