From 221faa2af1f2a1076a1648161ffc975ff475fb7a Mon Sep 17 00:00:00 2001 From: mRcfps <1402491442@qq.com> Date: Sun, 18 Feb 2018 23:23:47 +0800 Subject: [PATCH] two-fer: update tests to v1.2.0 --- exercises/two-fer/two_fer_test.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/exercises/two-fer/two_fer_test.py b/exercises/two-fer/two_fer_test.py index 5c0cbb0239..d08272ecbb 100644 --- a/exercises/two-fer/two_fer_test.py +++ b/exercises/two-fer/two_fer_test.py @@ -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__':