aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework/contrib_test.py
diff options
context:
space:
mode:
authorGravatar Martin Wicke <wicke@google.com>2016-01-25 14:42:53 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2016-01-25 15:16:57 -0800
commit914c870c6f6894d9be4c44d39878b1b7eeaf71bd (patch)
treecf14dbda8e7b4b75edcfc8ecec53be37a673e070 /tensorflow/python/framework/contrib_test.py
parent22ac2b00fcb51e36ceaadf75e0b1f488e28ac9fc (diff)
Open-source doc generator. Adds tools/docs with shell scripts to generate docs from source code, both c++ and python. The generated docs overwrite the docs in the g3doc/api_docs folder.
Change: 112989505
Diffstat (limited to 'tensorflow/python/framework/contrib_test.py')
-rw-r--r--tensorflow/python/framework/contrib_test.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/tensorflow/python/framework/contrib_test.py b/tensorflow/python/framework/contrib_test.py
new file mode 100644
index 0000000000..8f208c8609
--- /dev/null
+++ b/tensorflow/python/framework/contrib_test.py
@@ -0,0 +1,34 @@
+# Copyright 2015 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ==============================================================================
+"""Test that the contrib module shows up properly."""
+
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
+
+import inspect
+from tensorflow.python.platform import googletest
+
+
+class ContribTest(googletest.TestCase):
+
+ def testContrib(self):
+ # pylint: disable=g-import-not-at-top
+ import tensorflow as tf
+ assert inspect.ismodule(tf.contrib)
+
+
+if __name__ == '__main__':
+ googletest.main()