machine_test.py revision c7f1593f9af3ea1b9264b37628c36f3a70e1749a
1#!/usr/bin/python
2#
3# Copyright 2010 Google Inc. All Rights Reserved.
4
5"""Machine manager unittest.
6
7MachineManagerTest tests MachineManager.
8"""
9
10__author__ = "asharif@google.com (Ahmad Sharif)"
11
12
13import machine
14import unittest
15
16
17class MachineTest(unittest.TestCase):
18  def setUp(self):
19    pass
20
21
22  def testPrintMachine(self):
23    mach = machine.Machine("ahmad.mtv", "core2duo", 4, "linux", "asharif")
24    self.assertTrue("ahmad.mtv" in str(mach))
25
26
27if __name__ == "__main__":
28  unittest.main()
29