def test_basic(self): testcase = "Lovelace, Ada" expected = "Ada Lovelace" self.assertEqual(rearrange_name(testcase), expected)
def test_double_name(self): testcase = "Kennedy, John F." expected = "John F. Kennedy" self.assertEqual(rearrange_name(testcase), expected)
def test_one_name(self): testcase = "Voltaire" expected = "Voltaire" self.assertEqual(rearrange_name(testcase), expected)
def test_basic(self): testcase = "Lovelace, Ada" expected = "Ada Lovelace" assert rearrange_name(testcase) == expected
def test_empty(self): testcase = "" expected = "" self.assertEqual(rearrange_name(testcase), expected)
def test_double_name(self): testcase = "Hopper, Grace M." expected = "Grace M. Hopper" assert rearrange_name(testcase) == expected
def test_one_name(self): testcase = "Voltaire" expected = "Voltaire" assert rearrange_name(testcase) == expected
def test_basic(self): testcase = "Kowalski, Jan" expected = "Jan Kowalski" self.assertEqual(rearrange_name(testcase), expected)
def test_empty(self): testcase = "" expected = "" assert rearrange_name(testcase) == expected
def test_double(self): testcase = "Nowak, Kamil Ł." expected = "Kamil Ł. Nowak" self.assertEqual(rearrange_name(testcase), expected)
def test_one_name(self): testcase = "Arystoteles" expected = "Arystoteles" self.assertEqual(rearrange_name(testcase), expected)
def testbasic(self): testcase = "John, Assebe" expected = "Assebe John" self.assertEqual(rearrange_name(testcase), expected)
def test_single_name(self): testcase = "John" expected = "John" self.assertEqual(rearrange_name(testcase), expected)
def test_double_name(self): testcase = "John, Assebe s." expected = "Assebe s. John" self.assertEqual(rearrange_name(testcase), expected)
def test_basic(self): testcase = "Gaur, Jay" expected = "Jay Gaur" self.assertEqual(rearrange_name(testcase), expected)
def test_double_name(self): testcase = "Hopper, Grace M." expected = "Grace M. Hopper" self.assertEqual(rearrange_name(testcase), expected)