예제 #1
0
 def test_local_relocate_url(self):
     relocate_url = 'http://example.com'
     user = User(local_url='user/feed.xml')
     try:
         user.relocate_url = relocate_url
     except Exception as e:
         print e
         self.fail('Setting local user relocate_url failed.')
     self.assertEqual(user.relocate_url, relocate_url)
예제 #2
0
 def test_cached_relocate_url(self):
     relocate_url = 'http://example.com'
     user = User(entries={ 'relocate_url': relocate_url })
     relocate_url = 'http://example.net'
     try:
         user.relocate_url = relocate_url
     except Exception as e:
         print e
         self.fail('Setting cached relocate_url failed.')
     self.assertEqual(user.relocate_url, relocate_url)