'Test _is_valid_directory correctly determines mako directories'

@data({'directory': 'lms/templates', 'expected': True}, {'directory': 'lms/templates/support', 'expected': True}, {'directory': 'lms/templates/support', 'expected': True}, {'directory': 'test_root/staticfiles/templates', 'expected': False}, {'directory': './test_root/staticfiles/templates', 'expected': False}, {'directory': './some/random/path', 'expected': False})
def test_is_valid_directory(self, data):

    linter = MakoTemplateLinter()
    self.assertEqual(linter._is_valid_directory(data['directory']), data['expected'])
