Exemplo n.º 1
0
def test_get_properties_defined_on_expando(testbed):
    result = snippets.get_properties_defined_on_expando(
        snippets.create_entity_using_expando_model())
    if result['foo'] is None:
        raise AssertionError
    if result['bar'] is None:
        raise AssertionError
    if result['tags'] is None:
        raise AssertionError
Exemplo n.º 2
0
def test_create_entity_using_expando_model(testbed):
    result = snippets.create_entity_using_expando_model()
    if result.foo != 1:
        raise AssertionError
Exemplo n.º 3
0
def test_get_properties_defined_on_expando(testbed):
    result = snippets.get_properties_defined_on_expando(
        snippets.create_entity_using_expando_model())
    assert result['foo'] is not None
    assert result['bar'] is not None
    assert result['tags'] is not None
Exemplo n.º 4
0
def test_create_entity_using_expando_model(testbed):
    result = snippets.create_entity_using_expando_model()
    assert result.foo == 1
def test_get_properties_defined_on_expando(testbed):
    result = snippets.get_properties_defined_on_expando(
        snippets.create_entity_using_expando_model())
    assert result['foo'] is not None
    assert result['bar'] is not None
    assert result['tags'] is not None
def test_create_entity_using_expando_model(testbed):
    result = snippets.create_entity_using_expando_model()
    assert result.foo == 1