def test_check_imports_syntax_error(self): first = ''' @import ''' for first in first.split('---'): first = tokenize_selectors_and_properties(_in(first), self.indent) with self.assertRaises(SyntaxError): _out(check_imports_syntax(first))
def test_check_imports_syntax_for_indentation_error(self): first = ''' @import foo.css foo pass --- div span @import foo.css ''' for first in first.split('---'): first = tokenize_selectors_and_properties(_in(first), self.indent) with self.assertRaises(IndentationError): _out(check_imports_syntax(first))