Ejemplo n.º 1
0
 def test_get_msg(self):
     '''This currently checks that an exception is not thrown.'''
     for record in self._records:
         sr = SyncRecord()
         sr.load_from_msg(record)
         
         # not a proper test yet
         sr.get_msg()
    def test_get_apel_db_insert(self):

        for rec_txt, rec_tuple in zip(self._records, self._tuples):

            sr = SyncRecord()
            sr.load_from_msg(rec_txt)

            test_dn = "This is a test DN."

            values = sr.get_db_tuple(test_dn)

            for item1, item2 in zip(values, rec_tuple):
                if not item1 == item2:
                    print "item 1 is: " + str(item1)
                    print "item 2 is: " + str(item2)
                    self.fail('Values changed when creating a sync record.')
Ejemplo n.º 3
0
 def test_get_apel_db_insert(self):
     
     for rec_txt, rec_tuple in zip(self._records, self._tuples):
     
         sr = SyncRecord()
         sr.load_from_msg(rec_txt)
     
         test_dn = "This is a test DN."
     
         values = sr.get_db_tuple(test_dn)
   
         for item1, item2 in zip(values, rec_tuple):
             if not item1 == item2:
                 print "item 1 is: " + str(item1)
                 print "item 2 is: " + str(item2)
                 self.fail('Values changed when creating a sync record.')
    def test_get_msg(self):
        '''This currently checks that an exception is not thrown.'''
        for record in self._records:
            sr = SyncRecord()
            sr.load_from_msg(record)

            # not a proper test yet
            sr.get_msg()