Skip to content

Commit

Permalink
add enum test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 11, 2023
1 parent 2d2d248 commit bb7495a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
13 changes: 13 additions & 0 deletions unittests/messages/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
29 changes: 29 additions & 0 deletions unittests/messages/test_eieio_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) 2024 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


import unittest
from spinnman.config_setup import unittest_setup
from spinnman.messages.eieio import EIEIOType
from spinnman.messages.scp.enums import LEDAction


class TestEIEIOType(unittest.TestCase):

def setUp(self):
unittest_setup()

def test_get(self):
EIEIOType(2)
EIEIOType["KEY_32_BIT"]

0 comments on commit bb7495a

Please sign in to comment.