Add coloring to Test Planner machine view table cells.

Signed-off-by: James Ren <jamesren@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@4485 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/planner/rpc_interface_unittest.py b/frontend/planner/rpc_interface_unittest.py
index 9dd345b..0048307 100644
--- a/frontend/planner/rpc_interface_unittest.py
+++ b/frontend/planner/rpc_interface_unittest.py
@@ -215,7 +215,7 @@
                                                 finalized=True)
 
         host1_expected['tests_run'] = [{'test_name': 'test',
-                                        'success': False}]
+                                        'status': self._running_status.word}]
         actual = rpc_interface.get_machine_view_data(plan_id=self._plan.id)
         self.assertEqual(sorted(actual), sorted(expected))
 
@@ -226,7 +226,7 @@
         testrun.bugs.add(bug)
 
         host1_expected['tests_run'] = [{'test_name': 'test',
-                                        'success': True}]
+                                        'status': self._good_status.word}]
         host1_expected['bug_ids'] = ['bug']
         actual = rpc_interface.get_machine_view_data(plan_id=self._plan.id)
         self.assertEqual(sorted(actual), sorted(expected))