Source code for daklib.test_dbconn

# SPDX-License-Identifier: GPL-2.0-or-later

import pytest

from .dbconn import Architecture, Section


[docs] def test_Architecture___eq__(): obj = Architecture("arch") with pytest.warns(DeprecationWarning): assert obj == "arch" with pytest.warns(DeprecationWarning): assert "arch" == obj
[docs] def test_Architecture___ne__(): obj = Architecture("arch") with pytest.warns(DeprecationWarning): assert obj != "zzzz" with pytest.warns(DeprecationWarning): assert "zzzz" != obj
[docs] def test_Section___eq__(): obj = Section("section") with pytest.warns(DeprecationWarning): assert obj == "section" with pytest.warns(DeprecationWarning): assert "section" == obj
[docs] def test_Section___ne__(): obj = Section("section") with pytest.warns(DeprecationWarning): assert obj != "zzzz" with pytest.warns(DeprecationWarning): assert "zzzz" != obj