'test add_dir_to_ifmodssl.
Path must be valid before attempting to add to augeas'

def test_add_dir_to_ifmodssl(self):

    from certbot_apache.parser import get_aug_path
    self.parser.modules.add('mod_ssl.c')
    self.parser.add_dir_to_ifmodssl(get_aug_path(self.parser.loc['default']), 'FakeDirective', ['123'])
    matches = self.parser.find_dir('FakeDirective', '123')
    self.assertEqual(len(matches), 1)
    self.assertTrue(('IfModule' in matches[0]))
