Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/m/o/mootiro_web-HEAD/mootiro_web/tests/test_web_deps.py   mootiro_web(Download)
    def test_request1(self):
        deps = self.PageDeps()
        deps.lib('jquery')
        self.assertEqual(deps.lib.urls, [u'/static/lib/jquery-1.7.1.min.js'])
        deps.css('jquery')
    def test_request2(self):
        deps = self.PageDeps()
        deps.lib('jquery.ui')
        deps.lib('jquery.ui')  # requiring twice should have no effect
        SCRIPTS_OUT = '<script type="text/javascript" ' \
    def test_request3(self):
        deps = self.PageDeps()
        deps.lib('deform, jquery')
        deps.lib('jquery')
        self.assertEqual(deps.lib.urls, [u'/static/lib/jquery-1.7.1.min.js',
            u'/static/lib/jquery-ui-1.8.16.min.js', u"/static/lib/deform.js"])
 
    def test_package1(self):
        deps = self.PageDeps()
    def test_package2(self):
        deps = self.PageDeps()
        deps.package('deform')
        self.assertEqual(unicode(deps), '''
<link rel="stylesheet" type="text/css" href="http://jquery.css" />

src/b/a/bag-0.4.2/bag/tests/test_web_deps.py   bag(Download)
    def test_request1(self):
        deps = self.PageDeps()
        deps.lib('jquery')
        self.assertEqual(deps.lib.urls, ['/static/lib/jquery-1.7.1.min.js'])
        deps.css('jquery')
    def test_request2(self):
        deps = self.PageDeps()
        deps.lib('jquery.ui')
        deps.lib('jquery.ui')  # requiring twice should have no effect
        SCRIPTS_OUT = '<script type="text/javascript" ' \
    def test_request3(self):
        deps = self.PageDeps()
        deps.lib('deform, jquery')
        deps.lib('jquery')
        self.assertEqual(deps.lib.urls, ['/static/lib/jquery-1.7.1.min.js',
            '/static/lib/jquery-ui-1.8.16.min.js', "/static/lib/deform.js"])
 
    def test_package1(self):
        deps = self.PageDeps()
    def test_package2(self):
        deps = self.PageDeps()
        deps.package('deform')
        self.assertEqual(str(deps), '''
<link rel="stylesheet" type="text/css" href="http://jquery.css" />