def test_fontawesome_external_min():
    from tw2.fontawesome import fontawesome_css
    from tw2.fontawesome.config import version
    fontawesome_css = fontawesome_css(external=True, variant='min')
    the_link = (
        "//maxcdn.bootstrapcdn.com/font-awesome/%(version)s/css/"
        "font-awesome.min.css" % {'version': version})
    eq_(fontawesome_css.req().link, the_link)
Exemple #2
0
def test_fontawesome_external_min():
    from tw2.fontawesome import fontawesome_css
    from tw2.fontawesome.config import version
    fontawesome_css = fontawesome_css(external=True, variant='min')
    the_link = ("//maxcdn.bootstrapcdn.com/font-awesome/%(version)s/css/"
                "font-awesome.min.css" % {
                    'version': version
                })
    eq_(fontawesome_css.req().link, the_link)
def test_fontawesome_custom():
    from tw2.fontawesome import fontawesome_css
    fontawesome_css = fontawesome_css()
    the_link = "/foo/bar/fontawesome.css"
    fontawesome_css.link = the_link
    eq_(fontawesome_css.req().link, the_link)
def test_fontawesome_resource_min():
    from tw2.fontawesome import fontawesome_css
    fontawesome_css = fontawesome_css(variant='min')
    the_link = "/resources/tw2.fontawesome/static/css/font-awesome.min.css"
    eq_(fontawesome_css.req().link, the_link)
Exemple #5
0
def test_fontawesome_custom():
    from tw2.fontawesome import fontawesome_css
    fontawesome_css = fontawesome_css()
    the_link = "/foo/bar/fontawesome.css"
    fontawesome_css.link = the_link
    eq_(fontawesome_css.req().link, the_link)
Exemple #6
0
def test_fontawesome_resource_min():
    from tw2.fontawesome import fontawesome_css
    fontawesome_css = fontawesome_css(variant='min')
    the_link = "/resources/tw2.fontawesome/static/css/font-awesome.min.css"
    eq_(fontawesome_css.req().link, the_link)