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.160 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.159 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.158 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.157 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.156 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.155 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.154 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.153 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.152 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.151 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.150 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.149 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.148 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.147 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.146 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.145 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.144 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.143 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.142 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.141 tracks/python/exercises/two-fer/two_fer_test.py