Skip to content

two-fer: update tests to v1.2.0 #1331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions exercises/two-fer/two_fer_test.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import unittest

import two_fer
from two_fer import two_fer

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

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.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_no_name_given(self):
self.assertEqual(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_a_name_given(self):
self.assertEqual(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.")
def test_another_name_given(self):
self.assertEqual(two_fer("Bob"), "One for Bob, one for me.")


if __name__ == '__main__':
Expand Down