コード例 #1
0
 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
     )
コード例 #2
0
 def test_null(self):
     """Do not provide any authentication information."""
     self.assertEqual(client._curl_arg_user({}), '')