from fixture.orm import ORMFixture
from model.group import Group

db = ORMFixture(host='127.0.0.1', name="addressbook", user="******", password="")

try:
    l = db.get_contact_in_group(Group(id='112'))
    for item in l:
        print(item)
    print(len(l))
finally:
    pass  #db.destroy()
from fixture.orm import ORMFixture
from model.group import Group
from model.contact import Contact

db = ORMFixture(host="127.0.0.1", name="addressbook", user="******", password="")

try:
    l = db.get_contact_in_group(Group)
    for item in l:
        print(item)
    print(len(l))
finally:
    pass  # db.destroy()