def is_linux(self): if self.props['type'] == 'local': return get_local_os_type() == 'linux' return self.props.get('os', None) == 'linux'
def test_loc_os(self): self.assertEqual(get_local_os_type(), 'linux', 'Expected linux as os type')
def is_windows(self): if self.props['type'] == 'local': return get_local_os_type() == 'win10' return self.props.get('os', None) == 'win10'
def test_loc_os(self): self.assertNotEqual(get_local_os_type(), 'unknown', 'Expected other than "unknown" as os type')