File: assertions.py

package info (click to toggle)
python-spur 0.3.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: python: 1,188; makefile: 39
file content (13 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest


def assert_equal(expected, actual):
    assert expected == actual


def assert_not_equal(expected, actual):
    assert expected != actual


def assert_raises(exception_type, func):
    pytest.raises(exception_type, func)