Changeset 3857 for accountmanagerplugin/trunk
- Timestamp:
- 06/17/08 14:21:53 (5 months ago)
- Files:
-
- 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/trunk/acct_mgr/htfile.py
r2171 r3857 84 84 print userline 85 85 matched = True 86 el se:86 elif line.endswith('\n'): 87 87 print line, 88 else: # make sure the last line has a newline 89 print line 88 90 except EnvironmentError, e: 89 91 if e.errno == errno.ENOENT: accountmanagerplugin/trunk/acct_mgr/tests/htfile.py
r2171 r3857 86 86 'user:$apr1$xW/09...$fb150dT95SoL1HwXtHS/I0') 87 87 88 def test_add_with_no_trailing_newline(self): 89 filename = self._create_file('test_add_with_no_trailing_newline', 90 content='user:$apr1$' 91 'xW/09...$fb150dT95SoL1HwXtHS/I0') 92 self.env.config.set('account-manager', 'password_file', filename) 93 self.assertTrue(self.store.check_password('user', 'password')) 94 self.store.set_password('user2', 'password2') 95 self.assertTrue(self.store.check_password('user', 'password')) 96 self.assertTrue(self.store.check_password('user2', 'password2')) 97 88 98 89 99 def suite():
