def test_set_get_version(self): """ Application version accessors behave properly """ application = Application() application.set_version("bar") self.assertEqual("bar", application.get_version(), msg=".set_version() sets the version of the application")
def test_set_get_version(self): """ Application version accessors behave properly """ application = Application() application.set_version('bar') self.assertEqual('bar', application.get_version(), msg='.set_version() sets the version 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"