diff --git a/tensorflow/examples/adding_an_op/zero_out_1_test.py b/tensorflow/examples/adding_an_op/zero_out_1_test.py index de391a5f2d6bae7a3fc5ecba8be9f770ca6e2b5d..d261a423cb13fcb1869fcb0c8262bbc0bf526f27 100644 --- a/tensorflow/examples/adding_an_op/zero_out_1_test.py +++ b/tensorflow/examples/adding_an_op/zero_out_1_test.py @@ -40,7 +40,7 @@ class ZeroOut1Test(tf.test.TestCase): result = zero_out_op_1.namespace_nested_zero_out([5, 4, 3, 2, 1]) self.assertAllEqual(result, [5, 0, 0, 0, 0]) - def testLoadTwice(self): + def test_load_twice(self): zero_out_loaded_again = tf.load_op_library(os.path.join( tf.compat.v1.resource_loader.get_data_files_path(), 'zero_out_op_kernel_1.so')) diff --git a/tensorflow/examples/adding_an_op/zero_out_3_test.py b/tensorflow/examples/adding_an_op/zero_out_3_test.py index 1a4d816bb2babce2f7099777f151edcf6c3489fe..ce3616a7027079d7ae8180f48961373cf1e6cf93 100644 --- a/tensorflow/examples/adding_an_op/zero_out_3_test.py +++ b/tensorflow/examples/adding_an_op/zero_out_3_test.py @@ -25,15 +25,15 @@ class ZeroOut3Test(tf.test.TestCase): result = zero_out_op_3.zero_out([5, 4, 3, 2, 1]) self.assertAllEqual(result, [5, 0, 0, 0, 0]) - def testAttr(self): + def test_attr(self): result = zero_out_op_3.zero_out([5, 4, 3, 2, 1], preserve_index=3) self.assertAllEqual(result, [0, 0, 0, 2, 0]) - def testNegative(self): + def test_negative(self): with self.assertRaisesOpError("Need preserve_index >= 0, got -1"): self.evaluate(zero_out_op_3.zero_out([5, 4, 3, 2, 1], preserve_index=-1)) - def testLarge(self): + def test_large(self): with self.assertRaisesOpError("preserve_index out of range"): self.evaluate(zero_out_op_3.zero_out([5, 4, 3, 2, 1], preserve_index=17))