|
| 1 | +# pylint: disable=invalid-name |
1 | 2 | # SPDX-FileCopyrightText: 2019 Kevin J. Walters for Adafruit Industries
|
2 | 3 | #
|
3 | 4 | # SPDX-License-Identifier: MIT
|
| 5 | +# pylint: enable=invalid-name |
4 | 6 |
|
5 | 7 | import unittest
|
6 | 8 |
|
|
29 | 31 | # pylint: enable=wrong-import-position
|
30 | 32 |
|
31 | 33 |
|
32 |
| -class Test_MIDIMessage_from_message_byte_tests(unittest.TestCase): |
| 34 | +class Test_MIDIMessage_from_message_byte_tests( |
| 35 | + unittest.TestCase |
| 36 | +): # pylint: disable=invalid-name |
33 | 37 | def test_NoteOn_basic(self):
|
34 | 38 | data = bytes([0x90, 0x30, 0x7F])
|
35 | 39 | ichannel = 0
|
@@ -316,7 +320,9 @@ def test_Empty(self):
|
316 | 320 | self.assertEqual(skipped, 0)
|
317 | 321 |
|
318 | 322 |
|
319 |
| -class Test_MIDIMessage_NoteOn_constructor(unittest.TestCase): |
| 323 | +class Test_MIDIMessage_NoteOn_constructor( |
| 324 | + unittest.TestCase |
| 325 | +): # pylint: disable=invalid-name |
320 | 326 | def test_NoteOn_constructor_string(self):
|
321 | 327 | object1 = NoteOn("C4", 0x64)
|
322 | 328 | self.assertEqual(object1.note, 60)
|
@@ -356,7 +362,9 @@ def test_NoteOn_constructor_bogusstring(self):
|
356 | 362 | NoteOn("CC4", 0x7F)
|
357 | 363 |
|
358 | 364 |
|
359 |
| -class Test_MIDIMessage_NoteOff_constructor(unittest.TestCase): |
| 365 | +class Test_MIDIMessage_NoteOff_constructor( |
| 366 | + unittest.TestCase |
| 367 | +): # pylint: disable=invalid-name |
360 | 368 | # mostly cut and paste from NoteOn above
|
361 | 369 | def test_NoteOff_constructor_string(self):
|
362 | 370 | object1 = NoteOff("C4", 0x64)
|
|
0 commit comments