diff options
author | Filipp Lepalaan <filipp@mac.com> | 2017-08-08 15:48:33 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2017-08-08 15:48:33 +0300 |
commit | fcedba3dad25d5168a3d4e6b317b804014c9dd4d (patch) | |
tree | 6ded09c78eb5122bfa540212b5cdb8957ad19361 /tests.py | |
parent | ab8d4c8cedd3b97f24a9b98f8ff9aa18de928925 (diff) | |
download | machammer-fcedba3dad25d5168a3d4e6b317b804014c9dd4d.tar.gz machammer-fcedba3dad25d5168a3d4e6b317b804014c9dd4d.tar.bz2 machammer-fcedba3dad25d5168a3d4e6b317b804014c9dd4d.zip |
Added computer name functions
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -83,6 +83,14 @@ class SystemProfilerTestCase(TestCase): class NetworkTestCase(TestCase): + def test_get_computer_name(self): + name = network.get_computer_name() + self.assertEquals(name, 'lalalala') + + def test_fix_computer_name(self): + name = network.fix_computer_name('Computer (2)') + self.assertEqual(name, 'Computer') + def test_wifi_enable(self): """Turn wifi power on, check that it's on""" network.set_wifi_power(True) |