diff options
Diffstat (limited to 'tests/styles/parser/token_parser_tests.py')
| -rw-r--r-- | tests/styles/parser/token_parser_tests.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/tests/styles/parser/token_parser_tests.py b/tests/styles/parser/token_parser_tests.py index 0e278c7..3192dc9 100644 --- a/tests/styles/parser/token_parser_tests.py +++ b/tests/styles/parser/token_parser_tests.py @@ -1,12 +1,10 @@ -from nose.tools import istest, assert_equal - from mammoth.styles.parser.tokeniser import Token, TokenType from mammoth.styles.parser.token_parser import decode_escape_sequences, parse_identifier, parse_string from mammoth.styles.parser.token_iterator import TokenIterator +from ...testing import assert_equal -@istest -def escape_sequences_in_identifiers_are_decoded(): +def test_escape_sequences_in_identifiers_are_decoded(): assert_equal( ":", parse_identifier(TokenIterator([ @@ -15,8 +13,7 @@ def escape_sequences_in_identifiers_are_decoded(): ) -@istest -def escape_sequences_in_strings_are_decoded(): +def test_escape_sequences_in_strings_are_decoded(): assert_equal( "\n", parse_string(TokenIterator([ @@ -25,26 +22,21 @@ def escape_sequences_in_strings_are_decoded(): ) -@istest -def line_feeds_are_decoded(): +def test_line_feeds_are_decoded(): assert_equal("\n", decode_escape_sequences(r"\n")) -@istest -def carriage_returns_are_decoded(): +def test_carriage_returns_are_decoded(): assert_equal("\r", decode_escape_sequences(r"\r")) -@istest -def tabs_are_decoded(): +def test_tabs_are_decoded(): assert_equal("\t", decode_escape_sequences(r"\t")) -@istest -def backslashes_are_decoded(): +def test_backslashes_are_decoded(): assert_equal("\\", decode_escape_sequences(r"\\")) -@istest -def colons_are_decoded(): +def test_colons_are_decoded(): assert_equal(":", decode_escape_sequences(r"\:")) |
