def setUp(self): self.time_patcher = patch('django_zipkin.api.time') self.mock_time = self.time_patcher.start() self.store = Mock(spec=BaseDataStore) self.api = ZipkinApi(self.store)