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

All Samples(22)  |  Call(21)  |  Derive(0)  |  Import(1)

src/m/e/mediadrop-HEAD/mediadrop/lib/tests/css_delivery_test.py   mediadrop(Download)
# See LICENSE.txt in the main project directory, for more information.
 
from mediadrop.lib.css_delivery import StyleSheet, StyleSheets
from mediadrop.lib.test.pythonic_testcase import *
 
 
class StyleSheetTest(PythonicTestCase):
    def test_repr(self):
        assert_equals("StyleSheet('/foo.css', key=None)", repr(StyleSheet('/foo.css')))
    def test_repr(self):
        assert_equals("StyleSheet('/foo.css', key=None)", repr(StyleSheet('/foo.css')))
        assert_equals("StyleSheet('/foo.css', key=None, media='screen')", 
                      repr(StyleSheet('/foo.css', media='screen')))
 
    def test_can_tell_if_another_script_is_equal(self):
        first = StyleSheet('/foo.css')
        second = StyleSheet('/foo.css')