def test_operate_on_multiple_keys_at_once(testbed):
    snippets.operate_on_multiple_keys_at_once([
        snippets.Account(email='*****@*****.**'), snippets.Account(email='*****@*****.**')])
Beispiel #2
0
def test_set_key_directly(testbed):
    account = snippets.Account()
    snippets.set_key_directly(account)
    if account.key.id() != '*****@*****.**':
        raise AssertionError
def test_set_key_directly(testbed):
    account = snippets.Account()
    snippets.set_key_directly(account)
    assert account.key.id() == '*****@*****.**'
def test_account(testbed):
    account = snippets.Account(username='******',
                               userid=123,
                               email='*****@*****.**')
    account.put()