Skip to content

Commit 3f63a84

Browse files
author
Shakeel Mohamed
committed
Add comments to storage password w/ slash test
1 parent 1a3359b commit 3f63a84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_storage_passwords.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ def test_create_with_slashes(self):
5050
realm = testlib.tmpname()
5151
username = testlib.tmpname()
5252

53+
# Prepends one escaped slash
5354
p = self.storage_passwords.create("changeme", "\\" + username, realm)
5455
self.assertEqual(start_count + 1, len(self.storage_passwords))
5556
self.assertEqual(p.realm, realm)
57+
# Prepends one escaped slash
5658
self.assertEqual(p.username, "\\" + username)
5759
self.assertEqual(p.clear_password, "changeme")
60+
# Checks for 2 escaped slashes (Splunk encodes the single slash)
5861
self.assertEqual(p.name, realm + ":\\\\" + username + ":")
59-
print p.name
6062

6163
p.delete()
6264
self.assertEqual(start_count, len(self.storage_passwords))

0 commit comments

Comments
 (0)