~bladernr/checkbox/1095713-set-pipefail-on-sleep-jobs

« back to all changes in this revision

Viewing changes to tests/action.py

  • Committer: David Murphy
  • Date: 2007-09-18 15:26:03 UTC
  • Revision ID: david.murphy@canonical.com-20070918152603-wqjqtdyqftleulho
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
import types
 
3
import unittest
 
4
 
 
5
import hwtest.constants
 
6
 
 
7
hwtest.constants.SHARE_DIR = os.curdir
 
8
 
 
9
from hwtest.action import Action, execute
 
10
 
 
11
 
 
12
class ActionTest(unittest.TestCase):
 
13
 
 
14
    def test_cpu_info(self):
 
15
        cpu_info = execute("cpu_info")
 
16
        self.assertTrue(type(cpu_info) is types.StringType)
 
17
 
 
18
    def test_dmesg_nic(self):
 
19
        dmesg_nic = execute("dmesg_nic")
 
20
        self.assertTrue(type(dmesg_nic) is types.StringType)