コード例 #1
0
ファイル: test_utils.py プロジェクト: XTech2K/osf.io
 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'], '')
コード例 #2
0
ファイル: test_utils.py プロジェクト: wearpants/osf.io
 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'], '')
コード例 #3
0
ファイル: test_utils.py プロジェクト: XTech2K/osf.io
 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)
コード例 #4
0
ファイル: test_utils.py プロジェクト: wearpants/osf.io
 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)