Exemplo n.º 1
0
 def test_serialize_urls_disabled(self):
     urls = serialize_urls(None)
     for key in ['enable', 'disable', 'settings', 'otpauth']:
         assert_in(key, urls)
     assert_equal(urls['otpauth'], '')
Exemplo n.º 2
0
 def test_serialize_urls_disabled(self):
     urls = serialize_urls(None)
     for key in ['enable', 'disable', 'settings', 'otpauth']:
         assert_in(key, urls)
     assert_equal(urls['otpauth'], '')
Exemplo n.º 3
0
 def test_serialize_urls_enabled(self):
     urls = serialize_urls(self.user_addon)
     for key in ['enable', 'disable', 'settings', 'otpauth']:
         assert_in(key, urls)
     assert_equal(urls['otpauth'], self.user_addon.otpauth_url)
Exemplo n.º 4
0
 def test_serialize_urls_enabled(self):
     urls = serialize_urls(self.user_addon)
     for key in ['enable', 'disable', 'settings', 'otpauth']:
         assert_in(key, urls)
     assert_equal(urls['otpauth'], self.user_addon.otpauth_url)