コード例 #1
0
 def test_parameters(self):
     transport = MemoryTransport()
     self.assertEqual(True, transport.listable())
     self.assertEqual(False, transport.is_readonly())
コード例 #2
0
 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())
コード例 #3
0
 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())
コード例 #4
0
ファイル: test_transport.py プロジェクト: c0ns0le/cygwin
 def test_parameters(self):
     transport = MemoryTransport()
     self.assertEqual(True, transport.listable())
     self.assertEqual(False, transport.is_readonly())