def test_output(self):
        """Tests that matchups are output in the expected format."""
        expected = self.standardize_output([('Audrey', 'Able'),
                                            ('Axlerod', 'Audrey'),
                                            ('Able', 'Axlerod')])

        returned = task_01.get_matches(['Axlerod', 'Audrey', 'Able'])
        returned = self.standardize_output(returned)
        self.assertEqual(returned, expected)
示例#2
0
    def test_output(self):
        """Tests that matchups are output in the expected format."""
        expected = self.standardize_output([('Audrey', 'Able'),
                                            ('Axlerod', 'Audrey'),
                                            ('Able', 'Axlerod')])

        returned = task_01.get_matches(['Axlerod', 'Audrey', 'Able'])
        returned = self.standardize_output(returned)
        self.assertEqual(returned, expected)
 def test_matchup_count(self):
     """Tests that the count of matchups is correct, eg a half-cartesian."""
     expected = 153
     self.assertEqual(len(task_01.get_matches(data.VERSUS)), 153)
示例#4
0
 def test_matchup_count(self):
     """Tests that the count of matchups is correct, eg a half-cartesian."""
     expected = 153
     self.assertEqual(len(task_01.get_matches(data.VERSUS)), 153)