<s> import unittest <EOL> from devops . helpers import scancodes <EOL> class TestScancodes ( unittest . TestCase ) : <EOL> def test_abc ( self ) : <EOL> codes = scancodes . from_string ( '<STR_LIT:abc>' ) <EOL> self . assertEqual ( [ ( <NUM_LIT> , ) , ( <NUM_LIT> , ) , ( <NUM_LIT> , ) ] , codes ) <EOL> def test_ABC ( self ) : <EOL> codes = scancodes . from_string ( '<STR_LIT>' ) <EOL> self . assertEqual ( [ ( <NUM_LIT> , <NUM_LIT> ) , ( <NUM_LIT> , <NUM_LIT> ) , ( <NUM_LIT> , <NUM_LIT> ) ] , codes ) <EOL> def test_specials ( self ) : <EOL> codes = scancodes . from_string ( '<STR_LIT>' ) <EOL> self . assertEqual ( [ ( <NUM_LIT> , ) , ( <NUM_LIT> , ) , ( <NUM_LIT> , ) , ( <NUM_LIT> , ) ] , codes ) <EOL> def test_newlines_are_ignored ( self ) : <EOL> codes = scancodes . from_string ( "<STR_LIT>" ) <EOL> self . assertEqual ( [ ( <NUM_LIT> , ) , ( <NUM_LIT> , ) ] , codes ) <EOL> def test_wait ( self ) : <EOL> codes = scancodes . from_string ( "<STR_LIT>" ) <EOL> self . assertEqual ( [ ( <NUM_LIT> , ) , ( '<STR_LIT>' , ) , ( <NUM_LIT> , ) ] , codes ) </s>
