This commit is contained in:
Florian Bruhin 2014-07-01 07:57:19 +02:00
parent 29064850c7
commit 0d037c74d4
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
"""Tests for qutebrowser.keyinput."""

View File

@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
# pylint: disable=protected-access
"""Tests for BaseKeyParser."""
import unittest
@ -61,7 +63,7 @@ class NormalizeTests(unittest.TestCase):
def test_normalize(self):
"""Test normalize with some strings."""
STRINGS = (
strings = (
('Control+x', 'Ctrl+X'),
('Windows+x', 'Meta+X'),
('Mod1+x', 'Alt+X'),
@ -69,7 +71,7 @@ class NormalizeTests(unittest.TestCase):
('Control--', 'Ctrl+-'),
('Windows++', 'Meta++'),
)
for orig, repl in STRINGS:
for orig, repl in strings:
self.assertEqual(self.kp._normalize_keystr(orig), repl, orig)