def setUp(self): self.mixin = parse_mixin('''.fs (@main: 'TitilliumText15L400wt') { font-family: @main, 'Helvetica', sans-serif; }''')
def setUp(self): self.params = parse_mixin(".mixin(@param: '{') { };").params
def setUp(self): self.params = parse_mixin('.mixin(@param: 1) { }').params
def setUp(self): self.params = parse_mixin('.mixin(1);').params
def setUp(self): self.params = parse_mixin(".mixin('{');").params
def test_used_without_brackets(self): self.assertEqual(parse_mixin('.mixin;').params, NO_PARAMS)
def test_used(self): self.assertEqual(parse_mixin('.mixin();').params, NO_PARAMS)
def test_declared(self): self.assertEqual(parse_mixin('.mixin() { }').params, NO_PARAMS)
def setUp(self): self.mixin = parse_mixin('''.box-shadow(0 2px 5px rgba(0, 0, 0, 0.125), 0 2px 10px rgba(0, 0, 0, 0.25));''')
def setUp(self): self.params = parse_mixin('''.mixin (@name: 'a\'', @b: 'b') { display: none; }''').params