def test_non_null(self): """Provide authentication information.""" self.assertEqual( client._curl_arg_user({ 'auth': ('alice', 'hackme') }), '--user alice:hackme ', # there should be trailing whitespace )
def test_null(self): """Do not provide any authentication information.""" self.assertEqual(client._curl_arg_user({}), '')