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'], '')
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)