Ejemplo n.º 1
0
 def test_merge(self):
     pnoise_map = list(anoiseio.read_mapping(self.pnoise_fp))
     snoise_map = list(anoiseio.read_mapping(self.snoise_fp))
     merged = list(anoiseio.merge_mapping(snoise_map, pnoise_map))
     expected = [('test-snoise_0_9', ['HNURVDS01DLT4H', 'HNURVDS01CZVIU',
         'HNURVDS01D26KT', 'HNURVDS01CC1CQ', 'HNURVDS01DKD2V',
         'HNURVDS01B4O4G', 'HNURVDS01A8G9D', 'HNURVDS01B7BIK',
         'HNURVDS01A660L'])]
     self.assertEqual(expected, merged)
Ejemplo n.º 2
0
 def test_snoise(self):
     expected = [('test-snoise_0_9', [
         'test-pnoise_0_1', 'test-pnoise_1_2', 'test-pnoise_2_3',
         'test-pnoise_3_1', 'test-pnoise_4_1', 'test-pnoise_5_1'
     ])]
     actual = list(anoiseio.read_mapping(self.snoise_fp))
     self.assertEqual(expected, actual)
Ejemplo n.º 3
0
    def test_pnoise(self):
        expected = [('test-pnoise_0_1', ['HNURVDS01DLT4H']),
                ('test-pnoise_1_2', ['HNURVDS01CZVIU', 'HNURVDS01D26KT']),
                ('test-pnoise_2_3', 'HNURVDS01CC1CQ,HNURVDS01DKD2V,HNURVDS01B4O4G'.split(',')),
                ('test-pnoise_3_1', ['HNURVDS01A8G9D']),
                ('test-pnoise_4_1', ['HNURVDS01B7BIK']),
                ('test-pnoise_5_1', ['HNURVDS01A660L'])]

        actual = list(anoiseio.read_mapping(self.pnoise_fp))
        self.assertEqual(expected, actual)
Ejemplo n.º 4
0
    def test_pnoise(self):
        expected = [
            ('test-pnoise_0_1', ['HNURVDS01DLT4H']),
            ('test-pnoise_1_2', ['HNURVDS01CZVIU', 'HNURVDS01D26KT']),
            ('test-pnoise_2_3',
             'HNURVDS01CC1CQ,HNURVDS01DKD2V,HNURVDS01B4O4G'.split(',')),
            ('test-pnoise_3_1', ['HNURVDS01A8G9D']),
            ('test-pnoise_4_1', ['HNURVDS01B7BIK']),
            ('test-pnoise_5_1', ['HNURVDS01A660L'])
        ]

        actual = list(anoiseio.read_mapping(self.pnoise_fp))
        self.assertEqual(expected, actual)
Ejemplo n.º 5
0
 def test_snoise(self):
     expected = [('test-snoise_0_9', ['test-pnoise_0_1', 'test-pnoise_1_2',
         'test-pnoise_2_3', 'test-pnoise_3_1', 'test-pnoise_4_1',
         'test-pnoise_5_1'])]
     actual = list(anoiseio.read_mapping(self.snoise_fp))
     self.assertEqual(expected, actual)