Sha256: d8ec87e24a215a38d9154a19d4f62f15938b813042f00a4285bc5e521ffb4b26

Contents?: true

Size: 532 Bytes

Versions: 54

Compression:

Stored size: 532 Bytes

Contents

import unittest

import two_fer

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


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

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

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


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

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trackler-2.2.1.107 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.106 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.105 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.104 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.103 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.102 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.101 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.100 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.99 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.98 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.97 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.96 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.95 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.94 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.93 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.92 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.91 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.90 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.89 tracks/python/exercises/two-fer/two_fer_test.py
trackler-2.2.1.88 tracks/python/exercises/two-fer/two_fer_test.py