def testMissingMatches(self):
     symbols = ['second', 'third', 'other', 'first']
     (_, matched_count,
      unmatched_count) = (check_orderfile._CountMisorderedSymbols(
          symbols, self._SYMBOL_INFOS))
     self.assertEquals(matched_count, 3)
     self.assertEquals(unmatched_count, 1)
 def testMatchesSymbols(self):
     symbols = ['first', 'second', 'third']
     (misordered_pairs_count, matched_count,
      missing_count) = (check_orderfile._CountMisorderedSymbols(
          symbols, self._SYMBOL_INFOS))
     self.assertEquals(
         (misordered_pairs_count, matched_count, missing_count), (0, 3, 0))
 def testUnorderedSymbols(self):
   symbols = ['first', 'other', 'third', 'second', 'noMatchEither']
   (misordered_pairs_count, _, _) = (
       check_orderfile._CountMisorderedSymbols(symbols, self._SYMBOL_INFOS))
   self.assertEquals(misordered_pairs_count, 1)
 def testMissingMatches(self):
   symbols = ['second', 'third', 'other', 'first']
   (_, matched_count, unmatched_count) = (
       check_orderfile._CountMisorderedSymbols(symbols, self._SYMBOL_INFOS))
   self.assertEquals(matched_count, 3)
   self.assertEquals(unmatched_count, 1)
 def testMatchesSymbols(self):
   symbols = ['first', 'second', 'third']
   (misordered_pairs_count, matched_count, missing_count) = (
       check_orderfile._CountMisorderedSymbols(symbols, self._SYMBOL_INFOS))
   self.assertEquals(
       (misordered_pairs_count, matched_count, missing_count), (0, 3, 0))
 def testUnorderedSymbols(self):
     symbols = ['first', 'other', 'third', 'second', 'noMatchEither']
     (misordered_pairs_count, _,
      _) = (check_orderfile._CountMisorderedSymbols(symbols,
                                                    self._SYMBOL_INFOS))
     self.assertEquals(misordered_pairs_count, 1)