def create_instance(self): return EventFactory()
def setUp(self): self.event = EventFactory.build(name=u'Yac 2012')
def test_get_absolute_url(self, client): factory = EventFactory() response = client.get(factory.get_absolute_url()) assert response.status_code == 200