1
# Copyright 2010-2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
12
from lpresults.repository.prober import ProberFactoryRedirect
15
class FakeFactory(ProberFactoryRedirect):
19
def redirect(self, url):
20
self.redirectedTo = url
23
class FakeTimeoutCall:
27
def reset(self, seconds):
28
self.resetCalled = True
35
def loseConnection(self):
36
self.disconnecting = True
38
def write(self, text):