)]}'
{"doc/source/contributing/minor-code-changes.rst":[{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bb6b5800c2e06f4c10d5456763f00ffd45733cd5","unresolved":false,"context_lines":[{"line_number":44,"context_line":"  class Tests(MyTestCase):"},{"line_number":45,"context_line":"      def runTest(self):"},{"line_number":46,"context_line":"          self.assertTrue(\u0027True\u0027)"},{"line_number":47,"context_line":"          self.assertEqual(True, \u0027True\u0027)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"To run this use::"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9ad45d7e_e88d9d2b","line":47,"updated":"2016-08-12 14:33:31.000000000","message":"I was thinking you could change the body of this function to:\n\n        print(\"type(\u0027True\u0027) is: %s\" % type(\u0027True\u0027))\n        self.assertTrue(\u0027True\u0027)\n        print(\"assertTrue(\u0027True\u0027) ... PASSED. \")\n\n        print(\"type(True) is: %s\" % type(True))\n        self.assertTrue(True)\n        print(\"assertTrue(True) ... PASSED. \")\n\n        print(\"type(bool(\u0027True\u0027)) is: %s\" % type(bool(\u0027True\u0027)))\n        self.assertEqual(True, bool(\u0027True\u0027))\n        print(\"assertEqual(True, bool(\u0027True\u0027)) ... PASSED. \")\n\n        # this next call will fail\n        self.assertEqual(True, \u0027True\u0027)\n        # Conclusion: assertEqual(True, x) only passes when\n        # bool(x) is True AND type(x) is bool\n\nBut all those print statements probably get in the way.  I would suggest adding \"self.assertTrue(True)\" though before the assertEqual statement.  The interested person can hop into a python interpreter and check the types on their own.","commit_id":"74e62a5300b449ef8ca2aef858a03892bc50fc84"}]}
