1
# Copyright (c) 2008 Twisted Matrix Laboratories.
2
# See LICENSE for details.
5
Tests for runtime checks.
10
from twisted.python.runtime import Platform
11
from twisted.trial.unittest import TestCase
15
class PlatformTests(TestCase):
17
Tests for L{Platform}.
20
def test_isVistaConsistency(self):
22
Verify consistency of L{Platform.isVista}: it can only be C{True} if
23
L{Platform.isWinNT} and L{Platform.isWindows} are C{True}.
26
if platform.isVista():
27
self.assertTrue(platform.isWinNT())
28
self.assertTrue(platform.isWindows())
29
self.assertFalse(platform.isMacOSX())