예제 #1
0
 def test_is_posix_exception_invalid_name(self):
     compileman = CompileMan()
     with self.assertRaises(Exception):
         compileman.is_posix('not_valid')
예제 #2
0
 def test_is_posix_true_2(self):
     compileman = CompileMan()
     is_posix_result = compileman.is_posix('linux2')
     self.assertTrue(is_posix_result)
예제 #3
0
 def test_is_posix_true_3(self):
     compileman = CompileMan()
     is_posix_result = compileman.is_posix('darwin')
     self.assertTrue(is_posix_result)
예제 #4
0
 def test_is_posix_false(self):
     compileman = CompileMan()
     is_posix_result = compileman.is_posix('win32')
     self.assertFalse(is_posix_result)