コード例 #1
0
 def test_port_name_in_constructor(self):
     self.assertTrue(
         mock_drt.MockDRTPort(MockSystemHost(), port_name='mock-test'))
コード例 #2
0
 def make_port(self, options=mock_options):
     host = MockSystemHost()
     test.add_unit_tests_to_mock_filesystem(host.filesystem)
     return mock_drt.MockDRTPort(host,
                                 port_name='mock-mac-lion',
                                 options=options)