Пример #1
0
    def test_account_type_parser_given_invalid_value_raises_value_error(self):
        # Arrange, Act, Assert
        with pytest.raises(ValueError):
            AggressorSideParser.to_str_py(-1)

        with pytest.raises(ValueError):
            AggressorSideParser.from_str_py("")
Пример #2
0
    def test_aggressor_side_from_str(self, string, expected):
        # Arrange
        # Act
        result = AggressorSideParser.from_str_py(string)

        # Assert
        assert expected == result
Пример #3
0
    def test_aggressor_side_to_str(self, enum, expected):
        # Arrange
        # Act
        result = AggressorSideParser.to_str_py(enum)

        # Assert
        assert expected == result