summaryrefslogtreecommitdiff
path: root/tko
diff options
context:
space:
mode:
authorjamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4>2010-06-15 20:33:36 +0000
committerjamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4>2010-06-15 20:33:36 +0000
commit677cacd2ebfd5648d20a6ea1c62a0f6b0c6f0916 (patch)
tree6c4a9e9c2980277d7fad081c2a6157121780290e /tko
parent691cc3f5728f9b8c28e814008f487363669bd04e (diff)
Fix test fields names and removed some write out to binary code.
Signed-off-by: Darren Kuo <darrenkuo@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@4622 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko')
-rw-r--r--tko/job_serializer_unittest.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tko/job_serializer_unittest.py b/tko/job_serializer_unittest.py
index 14e854d7..eec22e5f 100644
--- a/tko/job_serializer_unittest.py
+++ b/tko/job_serializer_unittest.py
@@ -29,10 +29,10 @@ class JobSerializerUnittest(unittest.TestCase):
tko_patches.append(models.patch('New spec!', 'Reference?',
123456))
- tko_kernel = models.kernel('tubes', tko_patches, '1234567')
+ tko_kernel = models.kernel('My Computer', tko_patches, '1234567')
tko_time = datetime.now()
- tko_job = models.job('/tmp/', 'darrenkuo', 'test', 'My Computer',
+ tko_job = models.job('/tmp/', 'root', 'test', 'My Computer',
tko_time, tko_time, tko_time, 'root',
'www', 'No one', tko_time, {'1+1':2})
@@ -258,9 +258,7 @@ class ReadBackGetterTest(JobSerializerUnittest):
try:
temp_binary.write(self.pb_job.SerializeToString())
temp_binary.flush()
- f = open('qa-job.serialize', 'wb')
- f.write(self.pb_job.SerializeToString())
- f.close()
+
js = job_serializer.JobSerializer()
self.from_pb_job = js.deserialize_from_binary(temp_binary.name)
finally: