Esempio n. 1
0
 def setUp(self):
     self.db_file = 'temp.db'
     self.contactDAO = ContactDAO(self.db_file)
     self.contactDAO.init_db()
     self.contact1 = Contact(6, "R", "Z", "514999666", "*****@*****.**",
                             True, 20.3)
     self.contact2 = Contact(50, "H", "P", "514999666", "*****@*****.**",
                             False, 20.3)
Esempio n. 2
0
    def setUp(self):
        self.db_file = 'temp.db'
        self.contactDAO = ContactDAO(self.db_file)
        self.contactDAO.init_db()

        self.contact = Mock(first_name="fabrice",
                            last_name="ndui",
                            phone="4382747208",
                            mail="*****@*****.**",
                            updated=False,
                            updated_date=122323223232,
                            id=1222)
        self.contact1 = Mock(first_name="fabrice1",
                             last_name="ndui1",
                             phone="4382747208",
                             mail="*****@*****.**",
                             updated=False,
                             updated_date=122323223232)
Esempio n. 3
0
 def setUp(self):
     self.db_file = 'temp.db'
     self.contactDAO = ContactDAO(self.db_file)
     self.contactDAO.init_db()