Exemplo n.º 1
0
    def test_6(self):
        cfg.logger.info(
            f"Running {self.__class__.__name__}: {self._testMethodName}")
        localIds = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
        remoteIds = []
        correct = []

        result = oldToNewPushOrder(remoteIds, localIds)
        self.assertEqual(result, correct)
Exemplo n.º 2
0
    def test_insertAndDelete(self):
        cfg.logger.info(
            f"Running {self.__class__.__name__}: {self._testMethodName}")
        localIds = ['A', '1', 'C', '2', 'D']
        remoteIds = ['A', 'B', 'C', 'D']

        correct = [0, 1, 2, 3]

        result = oldToNewPushOrder(remoteIds, localIds)
        self.assertEqual(result, correct)
Exemplo n.º 3
0
    def test_7(self):
        cfg.logger.info(
            f"Running {self.__class__.__name__}: {self._testMethodName}")
        localIds = [
            'NigPr2mmENA',  #0
            'DzoYNerl4P8',  #1
            '6WYsoeVNEDY',  #2
            '0Wc2Og4vr2I',  #3
            'jhFDyDgMVUI',  #4
            'MfB3l3PHEFQ',  #5
            'I3EEhcLlKdo',  #6
            'bYwnf8r92G0',  #7
            'HiLKVdNJt_o',  #8
            'irIxkjXOp5M',  #9
            '8Yuorb-rB9A',  #
            'lUYZJRlOHyw',  #10
            'p1cymwvDf0w',  #11
            '4TAGhEVNCFc',  #12
            'RkMzJGAV7Vs',  #13
            'BhEfvGZM6jw',  #14
        ]
        remoteIds = [
            'MfB3l3PHEFQ',  #5
            'DzoYNerl4P8',  #1
            '6WYsoeVNEDY',  #2
            '0Wc2Og4vr2I',  #3
            'jhFDyDgMVUI',  #4
            'I3EEhcLlKdo',  #6
            'bYwnf8r92G0',  #7
            'HiLKVdNJt_o',  #8
            'irIxkjXOp5M',  #9
            'lUYZJRlOHyw',  #10
            'p1cymwvDf0w',  #11
            '4TAGhEVNCFc',  #12
            'RkMzJGAV7Vs',  #13
            'BhEfvGZM6jw',  #14
            'NigPr2mmENA',  #0
        ]

        correct = [5, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0]

        result = oldToNewPushOrder(remoteIds, localIds)
        self.assertEqual(result, correct)