def _assert_version(self, port_name, expected_version): port = WinPort(port_name=port_name, host=MockHost()) self.assertEquals(port.version(), expected_version)
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)
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)