コード例 #1
0
    def test_read_name_table(self):
        parser = ReplayParser()

        # Passing some unusual data into this function will cause it to throw
        # an exception.
        with open(self.folder_path + '2s.replay', 'rb') as f:
            with self.assertRaises(Exception):
                parser._read_name_table(f)
コード例 #2
0
    def test_read_name_table(self):
        parser = ReplayParser()

        # Passing some unusual data into this function will cause it to throw
        # an exception.
        with open(self.folder_path + '2s.replay', 'rb') as f:
            with self.assertRaises(Exception):
                parser._read_name_table(f)