summaryrefslogtreecommitdiff
path: root/scss/tests/test_expression.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-13 17:41:54 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-14 17:11:22 -0700
commit2045a868545d69044b4c1684dc9a66a765027b6c (patch)
tree092d4190444d864f97c62fce18c3153955490584 /scss/tests/test_expression.py
parent9a3a84a00bf22bc0d7ceb1df5a72daa2c08d90d1 (diff)
downloadpyscss-2045a868545d69044b4c1684dc9a66a765027b6c.tar.gz
Treat !important as a bareword.
Diffstat (limited to 'scss/tests/test_expression.py')
-rw-r--r--scss/tests/test_expression.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scss/tests/test_expression.py b/scss/tests/test_expression.py
index c496f79..cf59125 100644
--- a/scss/tests/test_expression.py
+++ b/scss/tests/test_expression.py
@@ -1,7 +1,7 @@
from scss.expression import Calculator
from scss.functions.core import CORE_LIBRARY
from scss.rule import Namespace
-from scss.types import Color, Null, Number, String
+from scss.types import Color, List, Null, Number, String
import pytest
@@ -144,5 +144,12 @@ def test_comparison_null(calc):
calc('null < null')
+def test_parse(calc):
+ # Tests for some general parsing.
+
+ assert calc('foo !important bar') == List([
+ String('foo'), String('!important'), String('bar'),
+ ])
+
# TODO write more! i'm lazy.