diff options
Diffstat (limited to 'tests/test_backend_corstone.py')
-rw-r--r-- | tests/test_backend_corstone.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_backend_corstone.py b/tests/test_backend_corstone.py new file mode 100644 index 0000000..29ef084 --- /dev/null +++ b/tests/test_backend_corstone.py @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates. +# SPDX-License-Identifier: Apache-2.0 +"""Tests for Corstone backend.""" +from mlia.backend.corstone import is_corstone_backend + + +def test_is_corstone_backend() -> None: + """Test function is_corstone_backend.""" + assert is_corstone_backend("Corstone-300") is True + assert is_corstone_backend("Corstone-310") is True + assert is_corstone_backend("New backend") is False |