def test_computed_property(testbed): entity = snippets.create_some_entity() entity.name = 'Nick' if entity.name_lower != 'nick': raise AssertionError entity.name = 'Nickie' if entity.name_lower != 'nickie': raise AssertionError
def test_computed_property(testbed): entity = snippets.create_some_entity() entity.name = "Nick" assert entity.name_lower == "nick" entity.name = "Nickie" assert entity.name_lower == "nickie"
def test_create_some_entity(testbed): entity = snippets.create_some_entity() if entity.name != 'Nick': raise AssertionError if entity.name_lower != 'nick': raise AssertionError
def test_create_some_entity(testbed): entity = snippets.create_some_entity() assert entity.name == "Nick" assert entity.name_lower == "nick"
def test_computed_property(testbed): entity = snippets.create_some_entity() entity.name = 'Nick' assert entity.name_lower == 'nick' entity.name = 'Nickie' assert entity.name_lower == 'nickie'
def test_create_some_entity(testbed): entity = snippets.create_some_entity() assert entity.name == 'Nick' assert entity.name_lower == 'nick'
def test_computed_property(client): entity = snippets.create_some_entity() entity.name = 'Nick' assert entity.name_lower == 'nick' entity.name = 'Nickie' assert entity.name_lower == 'nickie'
def test_create_some_entity(client): entity = snippets.create_some_entity() assert entity.name == 'Nick' assert entity.name_lower == 'nick'