def test_parameters(self): transport = MemoryTransport() self.assertEqual(True, transport.listable()) self.assertEqual(False, transport.is_readonly())
def test_makes_readonly_transport(self): # get_readonly_transport wraps a transport so that its readonly. transport = MemoryTransport() self.assertEqual(False, transport.is_readonly()) readonly_transport = get_readonly_transport(transport) self.assertEqual(True, readonly_transport.is_readonly())