def test_description_invalid(): """Tests valid values of description.""" # Arrange app = App() # Act/Assert with pytest.raises(ValueError): app.description = "" with pytest.raises(ValueError): app.description = None with pytest.raises(ValueError): app.description = "x" * 251
def test_description(): """Tests get/set of description.""" # Arrange app = App() # Act expected = "My Description" app.description = expected actual = app.description # Assert assert expected == actual