Skip to content

Commit

Permalink
new unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 24, 2016
1 parent bab722c commit c3c0ced
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/admin_scripts/test/stylesheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,16 @@ def test_sub_rules(self):
result.seek(0)
result = result.read()
self.assertEqual(result, expected)

def test_at_rules(self):
input = b"""@charset "utf-8";"""
expected = """@charset "utf-8";
"""
buffer = legacy.BytesIO(input)
result = stylesheets.cleanup_properties(
buffer,
windows_newline = False
)
result.seek(0)
result = result.read()
self.assertEqual(result, expected)

0 comments on commit c3c0ced

Please sign in to comment.