Python tensorflow.python.platform.googletest.TestCase() Examples
The following are 3
code examples of tensorflow.python.platform.googletest.TestCase().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
tensorflow.python.platform.googletest
, or try the search function
.
Example #1
Source File: compare_test.py From deep_image_model with Apache License 2.0 | 5 votes |
def assertNotEquals(self, a, b): """Asserts that ProtoEq says a != b.""" a, b = LargePbs(a, b) googletest.TestCase.assertEquals(self, compare.ProtoEq(a, b), False)
Example #2
Source File: compare_test.py From deep_image_model with Apache License 2.0 | 5 votes |
def assertEquals(self, a, b): """Asserts that ProtoEq says a == b.""" a, b = LargePbs(a, b) googletest.TestCase.assertEquals(self, compare.ProtoEq(a, b), True)
Example #3
Source File: compare_test.py From deep_image_model with Apache License 2.0 | 5 votes |
def testPrimitives(self): googletest.TestCase.assertEqual(self, True, compare.ProtoEq('a', 'a')) googletest.TestCase.assertEqual(self, False, compare.ProtoEq('b', 'a'))