text: from model.contact import Contact
  import random
  
  def test_delete_some_contact(app, orm):
      if len(orm.get_contact_list()) == 0:
          app.contact.add(Contact(firstname="Anna", middlename="Joanna", lastname="Wyszomirska", nickname="aneczka",
                                  title="Title", company="New Company", address="My address information",
                                  home="34725475263", mobile="32456234236", work="2364623645", fax="243256452",
                                  email="aniawzs@wp.pl", email2="test1@gmail.com", email3="test2@gmail.com",
                                  homepage="Test", birthyear="1990", annyear="2016",
                                  bday="//div[@id='content']/form/select[1]//option[4]",
                                  bmonth= "//div[@id='content']/form/select[2]//option[3]",
                                  aday="//div[@id='content']/form/select[3]//option[19]",
                                  amonth="//div[@id='content']/form/select[4]//option[3]",
                                  address2="My second address ", privatephone="23415257354735",
                                  comments="Brak uwag"
                                  ))
      old_contacts = orm.get_contact_list()
      contact = random.choice(old_contacts)
      app.contact.delete_contact_by_id(contact.id)
      new_contacts = orm.get_contact_list()
      old_contacts.remove(contact)
      assert old_contacts == new_contacts
  