def test_display_name_invalid(): """Tests valid values of display_name.""" # Arrange app = App() # Act/Assert with pytest.raises(ValueError): app.display_name = "" with pytest.raises(ValueError): app.display_name = None with pytest.raises(ValueError): app.display_name = "x" * 76
def test_display_name(): """Tests get/set of display_name.""" # Arrange app = App() # Act expected = "My Display Name" app.display_name = expected actual = app.display_name # Assert assert expected == actual