def test_windows_platform_detection(): """ Test that specifying platform 'windows' returns the default windows path to the hosts file """ assert Hosts.determine_hosts_path( platform='windows') == r'c:\windows\system32\drivers\etc\hosts'
def test_linux_platform_detection(): """ Test that specifying platform 'linux' returns the default linux path to the hosts file """ assert Hosts.determine_hosts_path(platform='linux') == '/etc/hosts'
def test_osx_platform_detection(): """ Test that specifying platform 'darwin' returns the default OSX path to the hosts file """ assert Hosts.determine_hosts_path(platform='darwin') == '/etc/hosts'
def test_linux_platform_detection(): """ Test that specifying platform 'linux' returns the default linux path to the hosts file """ assert Hosts.determine_hosts_path(platform='linux') == '/etc/hosts'
def test_osx_platform_detection(): """ Test that specifying platform 'darwin' returns the default OSX path to the hosts file """ assert Hosts.determine_hosts_path(platform='darwin') == '/etc/hosts'
def test_windows_platform_detection(): """ Test that specifying platform 'windows' returns the default windows path to the hosts file """ assert Hosts.determine_hosts_path(platform='windows') == r'c:\windows\system32\drivers\etc\hosts'