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