예제 #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_create_entity_using_expando_model(testbed):
    result = snippets.create_entity_using_expando_model()
    if result.foo != 1:
        raise AssertionError
예제 #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
예제 #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