Beispiel #1
0
 def test_credentials_full(self):
     self.assertEqual(handlers.credentials('user:pass'), ('user', 'pass'))
Beispiel #2
0
 def test_credentials_emptypass(self):
     self.assertEqual(handlers.credentials('user:'******'user', ''))
Beispiel #3
0
 def test_credentials_emptyuser(self):
     self.assertEqual(handlers.credentials(':pass'), ('', 'pass'))
Beispiel #4
0
 def test_credentials_nocolon(self):
     self.assertEqual(handlers.credentials('user'), ('user', ''))