2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00
waf/playground/pytest/test/test_foo.py
Calle Rosenquist f043a94a02 pytest: Added better support for normal and pyext library dependencies.
This also includes the `buildcopy` feature that allows construction of complete Python packages in the build dir.
2017-09-04 21:03:55 +02:00

17 lines
358 B
Python

#! /usr/bin/env python
# encoding: utf-8
# Calle Rosenquist, 2016 (xbreak)
import unittest
from foo import foo
class test_foo(unittest.TestCase):
def test_add_integers(self):
self.assertEqual(7, foo.sum(4, 3))
def test_add_strings(self):
self.assertEqual('foobar', foo.sum('foo', 'bar'))
def test_foo(self):
self.assertEqual('pong', foo.ping())