'Tests that bear throws TranslationUnitLoadError when file does not
exist.'

def test_file_does_not_exist(self):

    from clang.cindex import TranslationUnitLoadError
    generator = self.bear.execute('not_existing', self.file)
    self.assertNotEqual(generator, None)
    with self.assertRaisesRegex(TranslationUnitLoadError, 'C    value    error'):
        (yield generator)
