Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(18)  |  Derive(0)  |  Import(2)

src/m/e/mediadrop-HEAD/mediadrop/lib/services/facebook.py   mediadrop(Download)
__all__ = ['Facebook']
 
from mediadrop.lib.js_delivery import InlineJS, Script, Scripts
 
class FacebookSDKScript(InlineJS):
            FacebookSDKScript(self.app_id), 
            # '//' is a protocol-relative URL, uses HTTPS if the page uses HTTPS
            Script('//connect.facebook.net/en_US/all.js', async=True)
        )
 

src/m/e/mediadrop-HEAD/mediadrop/lib/tests/js_delivery_test.py   mediadrop(Download)
import re
 
from mediadrop.lib.js_delivery import InlineJS, Script, Scripts
from mediadrop.lib.test.pythonic_testcase import *
 
 
class ScriptTest(PythonicTestCase):
    def test_can_tell_if_another_script_is_equal(self):
        first = Script('/foo.js')
        second = Script('/foo.js')
    def test_can_tell_that_another_script_is_not_equal(self):
        first = Script('/foo.js')
        assert_not_equals(first, Script('/bar.js'))
        assert_not_equals(first, None)