deluge/deluge/tests/test_ui_console_fields.py
Calum Lind e37c817151 [Lint] Refactor flake8 noqa's and add msg numbers
From pep8-naming:
 * N802: function name should be lowercase
 * N803: argument name should be lowercase
2016-11-04 18:03:21 +00:00

30 lines
695 B
Python

# -*- coding: utf-8 -*-
from twisted.trial import unittest
from deluge.ui.console.widgets.fields import TextInput
class Parent(object):
def __init__(self):
self.border_off_x = 1
self.pane_width = 20
class UICommonTestCase(unittest.TestCase):
def setUp(self): # NOQA: N803
self.parent = Parent()
def tearDown(self): # NOQA: N803
pass
def test_text_input(self):
def move_func(self, r, c):
self._cursor_row = r
self._cursor_col = c
t = TextInput(self.parent, 'name', 'message', move_func, 20, '/text/field/file/path', complete=False)
self.assertTrue(t) # Shut flake8 up (unused variable)