def test_test_labels(self): labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEqual(len(labels), 2) label2 = labels[0] label3 = labels[1] self._check_for_get_test_labels(label2, 2) self._check_for_get_test_labels(label3, 3) rpc_interface.test_label_remove_tests(label2['id'], test_name='mytest1') labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEqual(len(labels), 1) label = labels[0] self._check_for_get_test_labels(label, 3) rpc_interface.test_label_add_tests(label2['id'], test_name='mytest1') labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEqual(len(labels), 2) label2 = labels[0] label3 = labels[1] self._check_for_get_test_labels(label2, 2) self._check_for_get_test_labels(label3, 3)
def test_test_labels(self): labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEquals(len(labels), 2) label2 = labels[0] label3 = labels[1] self._check_for_get_test_labels(label2, 2) self._check_for_get_test_labels(label3, 3) rpc_interface.test_label_remove_tests( label2['id'], test_name='mytest1') labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEquals(len(labels), 1) label = labels[0] self._check_for_get_test_labels(label, 3) rpc_interface.test_label_add_tests(label2['id'], test_name='mytest1') labels = rpc_interface.get_test_labels_for_tests(test_name='mytest1') self.assertEquals(len(labels), 2) label2 = labels[0] label3 = labels[1] self._check_for_get_test_labels(label2, 2) self._check_for_get_test_labels(label3, 3)