You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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())
|