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_get_properties_defined_on_expando(testbed):
    result = snippets.get_properties_defined_on_expando(
        snippets.create_expando_model())
    assert result['foo'] is not None
    assert result['bar'] is not None
    assert result['tags'] is not None