aboutsummaryrefslogtreecommitdiffstats
path: root/tests.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-03-11 10:13:39 +0200
committerFilipp Lepalaan <filipp@mac.com>2018-03-11 10:13:39 +0200
commitdc181c65bee13fcf43ceac5bd41b3cdd70e9033a (patch)
treeb1d16aa1a757415c23b3a7cf0e1d61bcc121fd73 /tests.py
parentf8ab391fc5ba0b602c679cdb4624a165f622a00f (diff)
downloadmachammer-dc181c65bee13fcf43ceac5bd41b3cdd70e9033a.tar.gz
machammer-dc181c65bee13fcf43ceac5bd41b3cdd70e9033a.tar.bz2
machammer-dc181c65bee13fcf43ceac5bd41b3cdd70e9033a.zip
Added os_version, Python 3 fixes
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 95288b7..c85ac26 100755
--- a/tests.py
+++ b/tests.py
@@ -137,12 +137,18 @@ class AppsTestCase(TestCase):
def testStickiesVersion(self):
results = self.profile.find('_name', 'Stickies')
- self.assertEquals(results[0]['version'], '10.0')
+ if functions.os_version() >= 10.13:
+ self.assertEqual(results[0]['version'], '10.1')
+ else:
+ self.assertEqual(results[0]['version'], '10.0')
def testFindApplications(self):
results = self.profile.find('path', '/Applications')
self.assertTrue(len(results) > 10)
+ def testSystemVersion(self):
+ self.assertLess(functions.os_version(), 10.14)
+
class InstallerTestCase(TestCase):
def setUp(self):