# Path: cpp/find_warnings.py
# def find_warnings(self):
#     if is_header_file(self.filename):
#         self._find_header_warnings()
#     elif is_cpp_file(self.filename):
#         self._find_source_warnings()


import unittest
from cpp import find_warnings
#!/usr/bin/env python

"""Tests for find_warnings module."""

from __future__ import absolute_import




class Tests(unittest.TestCase):

    def test_get_correct_include_filename(self):
        self.assertEqual(
            'FOO.h',
            find_warnings.get_correct_include_filename(
                'foo.h',
                ['FOO.h', 'apple.h']))

    def test_get_correct_include_filename_without_match(self):
        self.assertEqual(
            None,

# Path: cpp/find_warnings.py
# def find_warnings(self):
#     if is_header_file(self.filename):
#         self._find_header_warnings()
#     elif is_cpp_file(self.filename):
#         self._find_source_warnings()


# Path: test_find_warnings.py
import unittest
from cpp import find_warnings

#!/usr/bin/env python

"""Tests for find_warnings module."""

from __future__ import absolute_import




class Tests(unittest.TestCase):

    def test_get_correct_include_filename(self):
        self.assertEqual(
            'FOO.h',
            find_warnings.get_correct_include_filename(
                'foo.h',
                ['FOO.h', 'apple.h']))

    def test_get_correct_include_filename_without_match(self):
        self.assertEqual(
            None,

            find_warnings.get_correct_include_filename(