Files
cuckoo/tests/test_colors.py
Jurriaan Bremer afe8077162 rewrite the tests so they use pytest
Also reintroduce the capability to provide a custom connection string to
the Database (which is possible now that making the connection is no
longer part of __init__).
2016-08-23 02:10:14 +02:00

11 lines
372 B
Python

# Copyright (C) 2010-2013 Claudio Guarnieri.
# Copyright (C) 2014-2016 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from cuckoo.common.colors import color
def test_return_text():
"""Test colorized text contains the input string."""
assert "foo" in color("foo", 11)