Exemple #1
0
 def test_with_sample_map(self):
     m = {
         'FUM0LCO01DPWLL': 'A',
         'GA05AQR02H61T7': 'B',
         'GA05AQR02HZ4VX': 'B',
         'GA05AQR02IGIUG': 'C',
         'GLKT0ZE02GQ2FO': 'A',
         'FUM0LCO02JSVPV': 'A'
     }
     actual = search.dedup_info_to_counts(self.s, m)
     self.assertEqual(
         {
             'FUM0LCO02JSVPV': {
                 'A': 1.0
             },
             'FUM0LCO01DPWLL': {
                 'A': 2.0,
                 'B': 1.0
             },
             'GA05AQR02HZ4VX': {
                 'A': 1.0,
                 'B': 1.0,
                 'C': 1.0
             }
         }, actual)
Exemple #2
0
 def test_with_sample_map(self):
     m = {'FUM0LCO01DPWLL': 'A',
          'GA05AQR02H61T7': 'B',
          'GA05AQR02HZ4VX': 'B',
          'GA05AQR02IGIUG': 'C',
          'GLKT0ZE02GQ2FO': 'A',
          'FUM0LCO02JSVPV': 'A'}
     actual = search.dedup_info_to_counts(self.s, m)
     self.assertEqual(
         {'FUM0LCO02JSVPV': {'A': 1.0},
          'FUM0LCO01DPWLL': {'A': 2.0, 'B': 1.0},
          'GA05AQR02HZ4VX': {'A': 1.0, 'B': 1.0, 'C': 1.0}},
         actual)
Exemple #3
0
 def test_basic(self):
     actual = search.dedup_info_to_counts(self.s)
     self.assertEqual(
         {
             'FUM0LCO02JSVPV': {
                 'default': 1.0
             },
             'FUM0LCO01DPWLL': {
                 'default': 3.0
             },
             'GA05AQR02HZ4VX': {
                 'default': 3.0
             }
         }, actual)
Exemple #4
0
 def test_basic(self):
     actual = search.dedup_info_to_counts(self.s)
     self.assertEqual({'FUM0LCO02JSVPV': {'default': 1.0},
                       'FUM0LCO01DPWLL': {'default': 3.0},
                       'GA05AQR02HZ4VX': {'default': 3.0}}, actual)