'Only test it if colorama library is available.
This module is being tested because it uses ``setattr`` at some point,
which Jedi doesn\'t understand, but it should still work in the REPL.'

def test_colorama(self):

    try:
        import colorama
    except ImportError:
        pass
    else:
        self.namespace.colorama = colorama
        assert self.completions('colorama')
        assert (self.completions('colorama.Fore.BLACK') == ['colorama.Fore.BLACK'])
        del self.namespace.colorama
