pytilities.tests

pytilities.tests.is_iterable(a)

Test if something is iterable

pytilities.tests.is_private(name)

Test if name corresponds to a private attribute

Private attribute names start with ‘_’, contain ‘__’ and are not special (is_special).

Parameters:
  • name (string) – Attribute name to test
pytilities.tests.is_protected(name)

Test if name corresponds to a protected attribute

Protected attribute names start ‘_’, but don’t contain ‘__’.

Parameters:
  • name (string) – Attribute name to test
pytilities.tests.is_public(name)

Test if name corresponds to a public attribute

Names that do not start with ‘_’ are public.

Parameters:
  • name (string) – Attribute name to test
pytilities.tests.is_special(name)

Test if name corresponds to a special attribute

Special attribute names start and end with ‘__’.

Parameters:
  • name (string) – Attribute name to test

Previous topic

pytilities.testing

Next topic

Programming guide

This Page