Example #1
0
    def test_get_iteration_result_fields(self):
        num_iterations = rpc_interface.get_num_test_views(
            iteration_result_fields=['iresult', 'iresult2'])
        self.assertEqual(num_iterations, 2)

        iterations = rpc_interface.get_test_views(
            iteration_result_fields=['iresult', 'iresult2'])
        self.assertEqual(len(iterations), 2)

        for index in (0, 1):
            self.assertEqual(iterations[index]['test_idx'], 1)

        self.assertEqual(iterations[0]['iteration_index'], 1)
        self.assertEqual(iterations[0]['iteration_result_iresult'], 1)
        self.assertEqual(iterations[0]['iteration_result_iresult2'], 2)

        self.assertEqual(iterations[1]['iteration_index'], 2)
        self.assertEqual(iterations[1]['iteration_result_iresult'], 3)
        self.assertEqual(iterations[1]['iteration_result_iresult2'], 4)
    def test_get_iteration_result_fields(self):
        num_iterations = rpc_interface.get_num_test_views(
            iteration_result_fields=['iresult', 'iresult2'])
        self.assertEquals(num_iterations, 2)

        iterations = rpc_interface.get_test_views(
            iteration_result_fields=['iresult', 'iresult2'])
        self.assertEquals(len(iterations), 2)

        for index in (0, 1):
            self.assertEquals(iterations[index]['test_idx'], 1)

        self.assertEquals(iterations[0]['iteration_index'], 1)
        self.assertEquals(iterations[0]['iteration_result_iresult'], 1)
        self.assertEquals(iterations[0]['iteration_result_iresult2'], 2)

        self.assertEquals(iterations[1]['iteration_index'], 2)
        self.assertEquals(iterations[1]['iteration_result_iresult'], 3)
        self.assertEquals(iterations[1]['iteration_result_iresult2'], 4)
Example #3
0
 def test_get_num_test_views(self):
     self.assertEqual(rpc_interface.get_num_test_views(), 3)
     self.assertEqual(rpc_interface.get_num_test_views(
         job_name='myjob1', test_name='mytest1'), 1)
 def test_get_num_test_views(self):
     self.assertEquals(rpc_interface.get_num_test_views(), 3)
     self.assertEquals(
         rpc_interface.get_num_test_views(
             job_name='myjob1', test_name='mytest1'), 1)