Skip to content

Instantly share code, notes, and snippets.

View eferro's full-sized avatar

Eduardo Ferro Aldama eferro

View GitHub Profile
@eferro
eferro / gist:11fd8352d5defdeee3c9
Created June 8, 2014 20:50
spec example using mamba
with description('CPE status'):
with before.each:
self.ppg_service = Stub(ppg_services.ProductPackageGroupService)
self.sip_credentials = Stub(sip_credentials_module.SipCredentials)
self.cpe_status_repository = InMemoryCPEStatusRepository()
self.cpe_status_event_history_repository = InMemoryCPEStatusEventHistoryRepository()
self.clock = Stub(clock.Clock)
self.cpe_status_service = cpe_status_service(self.cpe_status_repository,
self.ppg_service,