예제 #1
0
 def _assert_version(self, port_name, expected_version):
     port = WinPort(port_name=port_name, host=MockHost())
     self.assertEquals(port.version(), expected_version)
예제 #2
0
 def _assert_version(self, port_name, expected_version):
     host = MockSystemHost(os_name='win', os_version=expected_version)
     port = WinPort(host, port_name=port_name)
     self.assertEqual(port.version(), expected_version)
예제 #3
0
 def _assert_version(self, port_name, expected_version):
     host = MockSystemHost(os_name='win', os_version=expected_version)
     port = WinPort(host, port_name=port_name)
     self.assertEqual(port.version(), expected_version)
예제 #4
0
 def _assert_version(self, port_name, expected_version):
     port = WinPort(port_name=port_name, filesystem=MockFileSystem(), user=MockUser(), executive=MockExecutive())
     self.assertEquals(port.version(), expected_version)
예제 #5
0
 def _assert_version(self, port_name, expected_version):
     port = WinPort(port_name=port_name,
                    filesystem=MockFileSystem(),
                    user=MockUser(),
                    executive=MockExecutive())
     self.assertEquals(port.version(), expected_version)