'Verify the number of documents contributed by user.'

def test_num_documents(self):

    u = UserFactory()
    RevisionFactory(creator=u)
    RevisionFactory(creator=u)
    r = self.client.get(reverse('users.profile', args=[u.username]))
    eq_(200, r.status_code)
    assert ('2    documents' in r.content)
