blob: 0d5f32c77dea9294c1017b5250f9454c78e7a3d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/python2.6
#
# 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()
|