File: mycode.py

package info (click to toggle)
python-ddt 1.0.1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 184 kB
  • sloc: python: 368; makefile: 153; sh: 5
file content (15 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Some simple functions that we will use in our tests.
"""


def larger_than_two(value):
    return value > 2


def has_three_elements(value):
    return len(value) == 3


def is_a_greeting(value):
    return value in ['Hello', 'Goodbye']