def test_parsemount(self): ''' Funtion to perform the test. ''' result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_rootext4(self): """ 测试找出根文件系统 """ result = parse_mounts() for line in result: if line[1] == '/' and line[2] != 'rootfs': self.assertEqual(line[2], 'ext4')
def test_parsemonut(self): """ 实际测试 任何以 'test_' 开头的方法都被视作测试用例 """ result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_rootext4(self): """ Test to find root filesystem """ result = parse_mounts() for line in result: if line[1] == '/' and line[2] != 'rootfs': self.assertEqual(line[2], 'ext4')
def test_parsemount(self): """ The actual test. Any method which starts with ``test_`` will be considered as a test case. """ result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_parsemount(self): """ The actual test. Any method which starts with ``test_`` will considered as a test case. """ result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_parsemount(self): """ The actual test. Any method which starts with ``test_`` will considered as a test case. """ result = parse_mounts() var1 = 100 if var1: print "1 - Got a true expression value" print var1 else: print "1 - Got a false expression value" print var1 self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_parsemount(self): result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_parsemount(self): """test case should be start with test_""" result = parse_mounts() self.assertIsInstance(result, list) self.assertIsInstance(result[0], tuple)
def test_rootext4(self): result = parse_mounts() for line in result: if line[1] == "/" and line[2] != 'rootfs': self.assertEqual(line[2], 'ext4')