def test_multi_line_value(self): self.assertEqual(parse_property('''src: local('Vollkorn'), url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA') format('truetype'); display: block;''').value,'''local('Vollkorn'), url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA') format('truetype')''')
def test_multi_line_value(self): self.assertEqual( parse_property('''src: local('Vollkorn'), url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA') format('truetype'); display: block;''').value, '''local('Vollkorn'), url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA') format('truetype')''')
def setUp(self): self.property = parse_property(\ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png');")
def test_multi_line(self): self.assertEqual(parse_property('display:block;\ndisplay:none').value, 'block')
def test_single_line(self): self.assertEqual(parse_property('display:block;display:none').value, 'block')
def setUp(self): self.property = parse_property("font-family: sans-serif;")
def test_single_line(self): self.assertEqual( parse_property('display:block;display:none').value, 'block')
def setUp(self): self.property = parse_property('content: url(/uri);')
def setUp(self): self.property = parse_property("content: url('/uri');")
def setUp(self): self.property = parse_property("content: '\0000A9';")
def setUp(self): self.property = parse_property('quotes: "{" "}";')
def test_multi_line(self): self.assertEqual( parse_property('display:block;\ndisplay:none').value, 'block')
def setUp(self): self.property = parse_property('''src: local('Vollkorn'), url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA') format('truetype');''')