Changeset 2128
- Timestamp:
- 03/27/07 10:53:23 (1 year ago)
- Files:
-
- accountmanagerplugin/0.10/acct_mgr/htfile.py (modified) (1 diff)
- accountmanagerplugin/0.10/acct_mgr/tests/htfile.py (modified) (1 diff)
- accountmanagerplugin/trunk/acct_mgr/htfile.py (modified) (1 diff)
- accountmanagerplugin/trunk/acct_mgr/tests/htfile.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
accountmanagerplugin/0.10/acct_mgr/htfile.py
r2120 r2128 70 70 if line.startswith(prefix): 71 71 return self._check_userline(password, prefix, 72 line[len(prefix): -1])72 line[len(prefix):].rstrip('\n')) 73 73 finally: 74 74 fd.close() accountmanagerplugin/0.10/acct_mgr/tests/htfile.py
r2119 r2128 72 72 'user:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=\n') 73 73 74 def test_no_trailing_newline(self): 75 self._do_password_test('test_no_trailing_newline', 76 'user:$apr1$xW/09...$fb150dT95SoL1HwXtHS/I0') 77 74 78 def _do_password_test(self, filename, content): 75 79 store = HtPasswdStore(self.env) accountmanagerplugin/trunk/acct_mgr/htfile.py
r2120 r2128 61 61 if line.startswith(prefix): 62 62 return self._check_userline(password, prefix, 63 line[len(prefix): -1])63 line[len(prefix):].rstrip('\n')) 64 64 finally: 65 65 fd.close() accountmanagerplugin/trunk/acct_mgr/tests/htfile.py
r2118 r2128 72 72 'user:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=\n') 73 73 74 def test_no_trailing_newline(self): 75 self._do_password_test('test_no_trailing_newline', 76 'user:$apr1$xW/09...$fb150dT95SoL1HwXtHS/I0') 77 74 78 def _do_password_test(self, filename, content): 75 79 store = HtPasswdStore(self.env)
