You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
495 B
26 lines
495 B
#!/usr/bin/python |
|
# |
|
# Copyright 2010 Google Inc. All Rights Reserved. |
|
"""Machine manager unittest. |
|
|
|
MachineManagerTest tests MachineManager. |
|
""" |
|
|
|
__author__ = 'asharif@google.com (Ahmad Sharif)' |
|
|
|
import machine |
|
import unittest |
|
|
|
|
|
class MachineTest(unittest.TestCase): |
|
|
|
def setUp(self): |
|
pass |
|
|
|
def testPrintMachine(self): |
|
mach = machine.Machine('ahmad.mtv', 'core2duo', 4, 'linux', 'asharif') |
|
self.assertTrue('ahmad.mtv' in str(mach)) |
|
|
|
|
|
if __name__ == '__main__': |
|
unittest.main()
|
|
|