mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
f043a94a02
This also includes the `buildcopy` feature that allows construction of complete Python packages in the build dir.
17 lines
358 B
Python
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())
|