testing.test_code module

class testing.test_code.CodeTest(methodName='runTest')[source]

Bases: DuplicityTestCase

run_checker(cmd, returncodes=[0])[source]
test_2to3()[source]
test_pep8()[source]

Test that we conform to PEP-8 using pycodestyle.

test_pylint()[source]

Pylint test (requires pylint to be installed to pass)

test_unadorned_string_literals()[source]

For predictable results in python/3 all string literals need to be marked as unicode, bytes or raw