コード例 #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
コード例 #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