Exemplo n.º 1
0
    def test_sets_partial_match(self):
        set1: SetInfo = SetInfo(set_number='STON-ENSE1', edition='LE')
        set2: SetInfo = SetInfo(set_number='STON-ENSE1', edition='FE')
        result = DataImport.do_sets_match(set1, set2)
        self.assertFalse(result)

        set1: SetInfo = SetInfo(set_number='STON-ENSE1', edition='FE')
        set2: SetInfo = SetInfo(set_number='DP04-EN012', edition='FE')
        result = DataImport.do_sets_match(set1, set2)
        self.assertFalse(result)
Exemplo n.º 2
0
 def test_sets_do_match(self):
     set1: SetInfo = SetInfo(set_number='CDIP-EN035', edition='FE')
     set2: SetInfo = SetInfo(set_number='CDIP-EN035', edition='FE')
     result = DataImport.do_sets_match(set1, set2)
     self.assertTrue(result)