Sha256: a4ef7bfc2154bbe529e9b6f4c84e0c5645818e5037dc67697be8031f5bd09c0e

Contents?: true

Size: 526 Bytes

Versions: 52

Compression:

Stored size: 526 Bytes

Contents

import unittest

from two_fer import two_fer


# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class Two_Fer_test(unittest.TestCase):
    def test_no_name_given(self):
        self.assertEqual(two_fer(), 'One for you, one for me.')

    def test_a_name_given(self):
        self.assertEqual(two_fer("Alice"), "One for Alice, one for me.")

    def test_another_name_given(self):
        self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")


if __name__ == '__main__':
    unittest.main()

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
trackler-2.2.1.120 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.119 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.118 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.117 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.116 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.115 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.114 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.113 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.111 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.110 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.109 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.108 tracks/python/exercises/two-fer/two_fer_test.py