Do not compare by is (not) with literals (#3139)
Do not compare by is (not) with literals (#3139)

Comparing string literals by is yields a SyntaxWarning on newer
Pythons. This happens in insights.client.connection that uses is/is
not to compare with string and number literals. Not only this issues
warnings, but is itself incorrect behavior that may lead to bugs.
Hence the warnings. Fixed and tested.

Signed-off-by: Štěpán Tomsa <754bda00028c7293c7107948d6b3cdb70e16784b@redhat.com>
RedHatInsights/insights-core,RedHatInsights/insights-core