Sha256: 17311e2bdc9934690dabf16d7db39a15626860728e95d0ca8d5e34c0ec8906cb

Contents?: true

Size: 524 Bytes

Versions: 19

Compression:

Stored size: 524 Bytes

Contents

import unittest

from two_fer import two_fer


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

class TwoFerTest(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

19 entries across 19 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.179 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.178 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.177 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.176 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.175 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.174 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.173 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.172 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.171 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.170 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.169 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.167 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.166 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.165 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.164 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.163 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.162 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.161 tracks/python/exercises/two-fer/two_fer_test.py