def test_set_get_name(self): """ Application name accessors behave properly """ application = Application() application.set_name("foo") self.assertEqual("foo", application.get_name(), msg=".set_name() sets the name of the application")
def test_set_get_name(self): """ Application name accessors behave properly """ application = Application() application.set_name('foo') self.assertEqual('foo', application.get_name(), msg='.set_name() sets the name of the application')
def test_name_version_setter(): app = Application("foo", "bar") app.set_name("bar") app.set_version("foo") assert app.name == "bar" assert app.display_name == "Bar" assert app.version == "foo" app.set_display_name("Baz") assert app.display_name == "Baz"