The lines: namespace = parser.parse_args([]) self.assertEqual('publicURL', namespace.os_endpoint_type) Are what are problematic.
Consider checking if the namespace.os_endpoint_type is either 'public' or 'publicURL'
The lines: parse_args( [])
self.assertEqu al('publicURL' , namespace. os_endpoint_ type)
namespace = parser.
Are what are problematic.
Consider checking if the namespace. os_endpoint_ type is either 'public' or 'publicURL'