def test_a_dot_cpp_file_is_not_an_include_file(self): project = ProjectLayout() self.assertFalse(project.isIncludeFile('Source/Module1/File.cpp'))
def test_another_extension_can_be_added_to_includes(self): project = ProjectLayout() project.addHeaderPattern('*.i') self.assertTrue(project.isIncludeFile('Source/Module1/File.i'))
def test_dots_in_extensions_are_escaped(self): project = ProjectLayout() project.addHeaderPattern('*.i') self.assertFalse(project.isIncludeFile('Source/Module1/Fileai'))
def test_a_dot_h_file_is_an_include_file(self): project = ProjectLayout() self.assertTrue(project.isIncludeFile('Source/Module1/File.h'))